# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=833

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 834

---

## [Edge Rails](https://www.ruby-forum.com/t/edge-rails/174222)

<div class="topic-metadata">

**Author:** [@msojka](https://www.ruby-forum.com/u/msojka)\
**Replies:** 0\
**Last updated:** [August 22, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/edge-rails/174222 "2009-08-22T21:45:32Z")

</div>

I am writing five blog posts about the goodies that have appeared in Edge Rails over the last few months. Two columns were posted at the end of last week. Three more will appear next week. You may have read about some…

---

## [Shopping Cart for my Application](https://www.ruby-forum.com/t/shopping-cart-for-my-application/174215)

<div class="topic-metadata">

**Author:** [@little\_kostas](https://www.ruby-forum.com/u/little_kostas)\
**Replies:** 8\
**Last updated:** [August 22, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/shopping-cart-for-my-application/174215 "2009-08-22T20:15:23Z")

</div>

Hi guys, i want to implement a shopping cart i my application for ordering books (this will work only in localhost not in production). Is there any tutorial explaining how can this be done?? Or any good plugin with …

---

## [Routing Error with Rails 2.3.3](https://www.ruby-forum.com/t/routing-error-with-rails-2-3-3/174125)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 1\
**Last updated:** [August 22, 2009, 8:06pm UTC](https://www.ruby-forum.com/t/routing-error-with-rails-2-3-3/174125 "2009-08-22T20:06:01Z")

</div>

Hi All This piece of code works in Rails 1.2 But crashes in Rails 2.2.3 Processing ApplicationController#index (for 127.0.0.1 at 2009-08-21 10:22:23) \[GET\] ActionController::RoutingError (No route matches “/images…

---

## [Doubt with helper](https://www.ruby-forum.com/t/doubt-with-helper/174152)

<div class="topic-metadata">

**Author:** [@alexander](https://www.ruby-forum.com/u/alexander)\
**Replies:** 2\
**Last updated:** [August 22, 2009, 7:31pm UTC](https://www.ruby-forum.com/t/doubt-with-helper/174152 "2009-08-22T19:31:29Z")

</div>

Hi all I need help I have in my application helper this function: def example content\_for(:meta) do ‘okis dokis’ end end And in my main layout view: … yield(:meta) … And in other view layer this: … exampl…

---

## [My first rails project completed](https://www.ruby-forum.com/t/my-first-rails-project-completed/174122)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 23\
**Last updated:** [August 22, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/my-first-rails-project-completed/174122 "2009-08-22T18:19:10Z")

</div>

Hi all, First, this is a longer than normal read but I hope that you get through it all and can learn from my experiences. So, I wanted to talk about my experiences with my first rails project now that I’ve completed…

---

## [Authlogic Administration](https://www.ruby-forum.com/t/authlogic-administration/173962)

<div class="topic-metadata">

**Author:** [@little\_kostas](https://www.ruby-forum.com/u/little_kostas)\
**Replies:** 5\
**Last updated:** [August 22, 2009, 4:40pm UTC](https://www.ruby-forum.com/t/authlogic-administration/173962 "2009-08-22T16:40:33Z")

</div>

Hi guys, i’ve created user authentication using Authlogic and it works like a charm!! But how can i use authlogic to authorize my administrator so that he can se a diffenent menu? All admin controllers and views are …

---

## [Text\_field with options (youtube style)](https://www.ruby-forum.com/t/text-field-with-options-youtube-style/174203)

<div class="topic-metadata">

**Author:** [@trd](https://www.ruby-forum.com/u/trd)\
**Replies:** 0\
**Last updated:** [August 22, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/text-field-with-options-youtube-style/174203 "2009-08-22T13:01:02Z")

</div>

Hello World. I’m kinda new here and new in Ruby on Rails. I’m working now at a personal project for learning RoR. I searched Google and it’s true that there are pleny result about this topic, but everything I do, I c…

---

## [Position for Senior Web Developer - 204846](https://www.ruby-forum.com/t/position-for-senior-web-developer-204846/174204)

<div class="topic-metadata">

**Author:** [@darren](https://www.ruby-forum.com/u/darren)\
**Replies:** 0\
**Last updated:** [August 22, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/position-for-senior-web-developer-204846/174204 "2009-08-22T12:45:51Z")

</div>

Hello, Highly respected organization is looking for a Senior Web D. in DC area. Please see details below for the position description. If you feel that you are a good match to the requirements and are interested, pl…

---

## [Rails messaging system](https://www.ruby-forum.com/t/rails-messaging-system/174059)

<div class="topic-metadata">

**Author:** [@twittwit](https://www.ruby-forum.com/u/twittwit)\
**Replies:** 2\
**Last updated:** [August 22, 2009, 12:44pm UTC](https://www.ruby-forum.com/t/rails-messaging-system/174059 "2009-08-22T12:44:40Z")

</div>

hi all, i want to build a messaging system for my rails application. i search the web and only found a rail 2.0.3 example.http:// www.novawave.net/public/rails\_messaging\_tutorial.html is there any latest example and …

---

## [CMS in Rails](https://www.ruby-forum.com/t/cms-in-rails/172274)

<div class="topic-metadata">

**Author:** [@cpdantha](https://www.ruby-forum.com/u/cpdantha)\
**Replies:** 8\
**Last updated:** [August 22, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/cms-in-rails/172274 "2009-08-22T12:17:30Z")

</div>

i have got to do a R&D for CMS in rails. so can someone tell me what is the best for CMS in rails ??? cheers, prathiba.

---

## [Libxml-ruby question](https://www.ruby-forum.com/t/libxml-ruby-question/174191)

<div class="topic-metadata">

**Author:** [@dekhaus](https://www.ruby-forum.com/u/dekhaus)\
**Replies:** 1\
**Last updated:** [August 22, 2009, 11:03am UTC](https://www.ruby-forum.com/t/libxml-ruby-question/174191 "2009-08-22T11:03:24Z")

</div>

Hi This has been driving me nuts for the past hour or two. I’m hoping someone here knows the answer. I need to be able to dynamically add some nodes to some xml. The example below is contrived - but hopefully cle…

---

## [Using URL path in REST app as ID](https://www.ruby-forum.com/t/using-url-path-in-rest-app-as-id/174194)

<div class="topic-metadata">

**Author:** [@Jonathan\_Bennett](https://www.ruby-forum.com/u/Jonathan_Bennett)\
**Replies:** 1\
**Last updated:** [August 22, 2009, 8:32am UTC](https://www.ruby-forum.com/t/using-url-path-in-rest-app-as-id/174194 "2009-08-22T08:32:58Z")

</div>

I’m a Rails newbie, so please bear with me. I want to use the URL as the ID for a RESTful resource, but using the path after the controller. The remaining portion of the URL would be the ID, rather than an integer. So…

---

## [Regex - problem](https://www.ruby-forum.com/t/regex-problem/174128)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [August 22, 2009, 8:03am UTC](https://www.ruby-forum.com/t/regex-problem/174128 "2009-08-22T08:03:08Z")

</div>

Helloo… how to make this below regular expression not to accept \_ anywhere in the string /^\[a-zA-Z0-9.\]+\[\\w\\s\]\*$/ how can i modify it… Any Advices or Suggesions… Thanks

---

## [Passing Values to Views](https://www.ruby-forum.com/t/passing-values-to-views/174179)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 6\
**Last updated:** [August 22, 2009, 6:03am UTC](https://www.ruby-forum.com/t/passing-values-to-views/174179 "2009-08-22T06:03:38Z")

</div>

I have an @member object (e.g., @member=Member.find(5)) with which I am doing the basic CRUD stuff. Records can be modified by either the administrative user or by other users in their “profile” settings. The two vie…

---

## [Generate Email with Link](https://www.ruby-forum.com/t/generate-email-with-link/174190)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 1\
**Last updated:** [August 22, 2009, 3:59am UTC](https://www.ruby-forum.com/t/generate-email-with-link/174190 "2009-08-22T03:59:30Z")

</div>

I am getting confused on how to do this. I want to send a link in an email that they can click on. I am confused on whther to use link\_to vs url\_for. I would also like to pass in a addional param in the link. Link\_to…

---

## [Decentralizing \_why's projects (aka the ruby community is awesome)](https://www.ruby-forum.com/t/decentralizing-whys-projects-aka-the-ruby-community-is-awesome/174189)

<div class="topic-metadata">

**Author:** [@philipjkim](https://www.ruby-forum.com/u/philipjkim)\
**Replies:** 0\
**Last updated:** [August 22, 2009, 3:25am UTC](https://www.ruby-forum.com/t/decentralizing-whys-projects-aka-the-ruby-community-is-awesome/174189 "2009-08-22T03:25:41Z")

</div>

A quick pointer to http://whymirror.github.com/ – we’re trying to recover \_why’s old projects and find custodians for them. I’ve posted a progress report on the comp.lang.ruby list (http:// groups.google.com/group/com…

---

## [MD5 digest doesn't match digest from md5sum in shell](https://www.ruby-forum.com/t/md5-digest-doesnt-match-digest-from-md5sum-in-shell/174180)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 22, 2009, 12:09am UTC](https://www.ruby-forum.com/t/md5-digest-doesnt-match-digest-from-md5sum-in-shell/174180 "2009-08-22T00:09:37Z")

</div>

I’m having problems not being able to get the MD5 digest from ruby to match the digest from the md5sum command in the bash shell Digest::MD5.hexdigest(“String”) is not producing the same hash as echo “String” | md5su…

---

## [Mongrel and mimetype?](https://www.ruby-forum.com/t/mongrel-and-mimetype/174177)

<div class="topic-metadata">

**Author:** [@bornboulder](https://www.ruby-forum.com/u/bornboulder)\
**Replies:** 2\
**Last updated:** [August 21, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/mongrel-and-mimetype/174177 "2009-08-21T23:54:59Z")

</div>

Dear Mongrel People, lighttpd allows me to assign a mimetype to a file which ends with a specific suffix. For example if I have a file named, “helloworld.manifest”, and I serve it using lighttpd, I can declare its m…

---

## [Unnecessary queries](https://www.ruby-forum.com/t/unnecessary-queries/174153)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 8\
**Last updated:** [August 21, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/unnecessary-queries/174153 "2009-08-21T21:12:16Z")

</div>

Hi, I have managed to create a table that includes many nested sets. I have a problem with it though. I can retrieve one set by getting its root element and then do something like: @attributes = root\_attribute.self\_a…

---

## [Automatically get a list of controller names](https://www.ruby-forum.com/t/automatically-get-a-list-of-controller-names/161514)

<div class="topic-metadata">

**Author:** [@ramontayag](https://www.ruby-forum.com/u/ramontayag)\
**Replies:** 4\
**Last updated:** [August 21, 2009, 8:51pm UTC](https://www.ruby-forum.com/t/automatically-get-a-list-of-controller-names/161514 "2009-08-21T20:51:11Z")

</div>

Okay, just a follow up question: is there an automatic way to make an array of all controller names? So that I could use this in the user model to validate the user doesn’t type in any of the controller names. (This…

---

## [Domain Pointers - Subdomain + ruby on rails](https://www.ruby-forum.com/t/domain-pointers-subdomain-ruby-on-rails/174144)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 2\
**Last updated:** [August 21, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/domain-pointers-subdomain-ruby-on-rails/174144 "2009-08-21T20:48:51Z")

</div>

Hello Friends, Need some help on domain pointers over subdomain. My requirement is that we have couple of subdomain like Example1.com Should point to ex1.example.com Example2.com Should point to ex2.example.com T…

---

## [Remote Data - Best Approach?](https://www.ruby-forum.com/t/remote-data-best-approach/174176)

<div class="topic-metadata">

**Author:** [@sams](https://www.ruby-forum.com/u/sams)\
**Replies:** 1\
**Last updated:** [August 21, 2009, 8:34pm UTC](https://www.ruby-forum.com/t/remote-data-best-approach/174176 "2009-08-21T20:34:12Z")

</div>

Hi, I’m new to Ruby on Rails. I must admit, the Ruby language is quite straightforward for me, but the Rails thing has me a bit confused. Here is my problem, I can’t quite figure out what the best approach would be. I…

---

## [Passenger and 403s](https://www.ruby-forum.com/t/passenger-and-403s/174089)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 2\
**Last updated:** [August 21, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/passenger-and-403s/174089 "2009-08-21T19:59:05Z")

</div>

I am setting up Passenger on my dev box and I am running into an issue getting the ServerName on a vHost to work. The code below allows localhost to work as planned. However when I try to pull up the app using the Ser…

---

## [No marshal\_dump is defined for class](https://www.ruby-forum.com/t/no-marshal-dump-is-defined-for-class/174174)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 0\
**Last updated:** [August 21, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/no-marshal-dump-is-defined-for-class/174174 "2009-08-21T19:16:16Z")

</div>

Hi all, Does anyone knows what this error message means?

---

## [Getting :accepts\_nested\_attributes\_for to work with a :belongs\_to relationship](https://www.ruby-forum.com/t/getting-accepts-nested-attributes-for-to-work-with-a-belongs-to-relationship/174173)

<div class="topic-metadata">

**Author:** [@Billy\_G](https://www.ruby-forum.com/u/Billy_G)\
**Replies:** 0\
**Last updated:** [August 21, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/getting-accepts-nested-attributes-for-to-work-with-a-belongs-to-relationship/174173 "2009-08-21T19:15:46Z")

</div>

Hi Rails hackers, I just recently came across the fantastic new accepts\_nested\_attributes\_for method off Ryans Scraps, checked out the Rails blog announcement of the feature in 2.3, watched the Rails Cast, etc. I’m …

---

## [What should be server-side and what should be client-side](https://www.ruby-forum.com/t/what-should-be-server-side-and-what-should-be-client-side/174085)

<div class="topic-metadata">

**Author:** [@drewB](https://www.ruby-forum.com/u/drewB)\
**Replies:** 6\
**Last updated:** [August 21, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/what-should-be-server-side-and-what-should-be-client-side/174085 "2009-08-21T18:40:03Z")

</div>

I have been thinking lately about what should be executed client-side vs. server-side and was curious what others thoughts are. Let’s take the following example. A user has selected X pieces of furniture. On a singl…

---

## [URL-Based Thumbnail Generation](https://www.ruby-forum.com/t/url-based-thumbnail-generation/174133)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 3\
**Last updated:** [August 21, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/url-based-thumbnail-generation/174133 "2009-08-21T18:01:59Z")

</div>

I am currently have a ‘products’ table that has a “:has\_many” relationship with a ‘photos’ table. I am uploading photos to accompany products. Right now, I upload the photo, save the metadata to the ‘photos’ table an…

---

## [Sync list of files in DB vs. list of files in folder](https://www.ruby-forum.com/t/sync-list-of-files-in-db-vs-list-of-files-in-folder/174037)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 3\
**Last updated:** [August 21, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/sync-list-of-files-in-db-vs-list-of-files-in-folder/174037 "2009-08-21T17:37:08Z")

</div>

This may be the wrong question to ask, but I’ll start here anyway because this could probably use some optimization. The code underneath gets a list of all the files in all the folders specified, then deletes the data…

---

## [Params becoming mangled after failed form validation and resubmit](https://www.ruby-forum.com/t/params-becoming-mangled-after-failed-form-validation-and-resubmit/174097)

<div class="topic-metadata">

**Author:** [@Erik\_Cameron](https://www.ruby-forum.com/u/Erik_Cameron)\
**Replies:** 1\
**Last updated:** [August 21, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/params-becoming-mangled-after-failed-form-validation-and-resubmit/174097 "2009-08-21T17:06:57Z")

</div>

Dear all, I’m having a weird problem with a fairly straightforward form. (Please—if this is an RTFM issue, just let me know. I’ve been looking for answers to no avail, but it’s certainly possible I missed something.…

---

## [HOw to use javascript in rails?](https://www.ruby-forum.com/t/how-to-use-javascript-in-rails/174160)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 2\
**Last updated:** [August 21, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/how-to-use-javascript-in-rails/174160 "2009-08-21T17:00:09Z")

</div>

Hi to all, I am a newbie in rails or ROR, can we use javascript in rails? Any documentation or blog will be welcome. Regards Hunt

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=832)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=834)
