# Rails

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

[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:** 597

---

## [Newbie, reciving a hash from the view](https://www.ruby-forum.com/t/newbie-reciving-a-hash-from-the-view/191814)

<div class="topic-metadata">

**Author:** [@maese](https://www.ruby-forum.com/u/maese)\
**Replies:** 2\
**Last updated:** [July 19, 2010, 1:01pm UTC](https://www.ruby-forum.com/t/newbie-reciving-a-hash-from-the-view/191814 "2010-07-19T13:01:20Z")

</div>

hi, i am new in ruby, i have to do the next Send a hash (key are strings and values are booleans) to the view, show it like check box in the view, using string like nome and the value like check or not checked, and re…

---

## [Passenger bug?](https://www.ruby-forum.com/t/passenger-bug/191740)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [July 19, 2010, 12:51pm UTC](https://www.ruby-forum.com/t/passenger-bug/191740 "2010-07-19T12:51:14Z")

</div>

I’m trying to get Nginx and Passenger working. I’ve installed Nginx through Passenger. When accessing a rails app I get “Exception Errno::EPIPE in Passenger RequestHandler”. From what I can see this has happened to ot…

---

## [It worked the first time, but what is happening now?](https://www.ruby-forum.com/t/it-worked-the-first-time-but-what-is-happening-now/191821)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 1\
**Last updated:** [July 19, 2010, 12:03pm UTC](https://www.ruby-forum.com/t/it-worked-the-first-time-but-what-is-happening-now/191821 "2010-07-19T12:03:21Z")

</div>

I was walking through this simple Rails guide: I’m concentrating here in the map.root route and having a page to show when navigating to http://localhost:3000 instead of the default one. I will tell you what I did, a…

---

## [Layout on Email](https://www.ruby-forum.com/t/layout-on-email/191710)

<div class="topic-metadata">

**Author:** [@Rawlins](https://www.ruby-forum.com/u/Rawlins)\
**Replies:** 3\
**Last updated:** [July 19, 2010, 11:43am UTC](https://www.ruby-forum.com/t/layout-on-email/191710 "2010-07-19T11:43:29Z")

</div>

Hello G.s, Very new to Rails an enjoying myself a great deal. Been playing around with the ActionMailer today sending emails. I’m currently sending a multipart email using the naming conventions for my views to send b…

---

## [:controller, how does Rails recognize them?](https://www.ruby-forum.com/t/controller-how-does-rails-recognize-them/191817)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 3\
**Last updated:** [July 19, 2010, 11:43am UTC](https://www.ruby-forum.com/t/controller-how-does-rails-recognize-them/191817 "2010-07-19T11:43:18Z")

</div>

In the Rails guides: Getting Started with Rails — Ruby on Rails Guides It mentions that we have the following in the “routes.rb” file: map.connect ‘:controller/:action/:id’ map.connect ‘:controller/:action/:id.:format…

---

## [Ruby - return true if any element in Array satisfies condition but false otherwise](https://www.ruby-forum.com/t/ruby-return-true-if-any-element-in-array-satisfies-condition-but-false-otherwise/191706)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 6\
**Last updated:** [July 19, 2010, 10:45am UTC](https://www.ruby-forum.com/t/ruby-return-true-if-any-element-in-array-satisfies-condition-but-false-otherwise/191706 "2010-07-19T10:45:30Z")

</div>

Hi, A Ruby question. Anyone know a function that loops through an array and returns true if any one element satisfies the condition but false if none satisfy the condition? And it should do this in one line. Somethin…

---

## [Walking through the Authlogic, BUT](https://www.ruby-forum.com/t/walking-through-the-authlogic-but/191795)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 19, 2010, 10:35am UTC](https://www.ruby-forum.com/t/walking-through-the-authlogic-but/191795 "2010-07-19T10:35:22Z")

</div>

I’m walking through the Authlogic Railscast at: First, I went to work with scaffold instead of nifty\_scaffold I just have two questions regarding the tutorial: 1- What does root\_url refer to in the tutorial. I’m actu…

---

## [Map.login](https://www.ruby-forum.com/t/map-login/191793)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 19, 2010, 10:33am UTC](https://www.ruby-forum.com/t/map-login/191793 "2010-07-19T10:33:44Z")

</div>

In the Rails guides, under “Named Routes”, it mentions the following: map.login ‘/login’, :controller =\> ‘sessions’, :action =\> ‘new’ So, do I conclude that .login in map.login is “built-in” Rails, and where used it d…

---

## [How do I fix this?](https://www.ruby-forum.com/t/how-do-i-fix-this/191355)

<div class="topic-metadata">

**Author:** [@angel](https://www.ruby-forum.com/u/angel)\
**Replies:** 5\
**Last updated:** [July 19, 2010, 9:39am UTC](https://www.ruby-forum.com/t/how-do-i-fix-this/191355 "2010-07-19T09:39:21Z")

</div>

ruby 1.9.3dev (2010-07-06 trunk 28554) \[i686-linux\]Rails 3.0.0.beta4 Fedora Release 13 Kernel Linux 2.6.33.5-124.fc13.i686.PAE GNOME 2.30.0 After I scaffold, migrate, link\_to posts\_path, and check click on new post …

---

## [Multiple Application Single Database](https://www.ruby-forum.com/t/multiple-application-single-database/191812)

<div class="topic-metadata">

**Author:** [@Bhushan\_Lodha](https://www.ruby-forum.com/u/Bhushan_Lodha)\
**Replies:** 0\
**Last updated:** [July 19, 2010, 9:15am UTC](https://www.ruby-forum.com/t/multiple-application-single-database/191812 "2010-07-19T09:15:22Z")

</div>

Hello, I am developing multiple application and want use a single database for auth and profile info, a separate database for each application’s other data. Please if anybody can suggest me recipe.

---

## [Passenger configuration](https://www.ruby-forum.com/t/passenger-configuration/191787)

<div class="topic-metadata">

**Author:** [@sachin](https://www.ruby-forum.com/u/sachin)\
**Replies:** 3\
**Last updated:** [July 19, 2010, 6:22am UTC](https://www.ruby-forum.com/t/passenger-configuration/191787 "2010-07-19T06:22:08Z")

</div>

Hello Experts, I am developing a site that will be deployed on dreamhost. My Development environment is as followed. Development H:\\mywork\\QMed\\KIMS\_banglore\\rails\_apps\\kims\_sachin2.0\>ruby script/ about About your …

---

## [Pls help me](https://www.ruby-forum.com/t/pls-help-me/191767)

<div class="topic-metadata">

**Author:** [@sai](https://www.ruby-forum.com/u/sai)\
**Replies:** 1\
**Last updated:** [July 19, 2010, 5:21am UTC](https://www.ruby-forum.com/t/pls-help-me/191767 "2010-07-19T05:21:17Z")

</div>

hi… i’ve an application developed in C language… I want to develop web interface for the same using ruby on rails… the application is for video streaming… so how can i embed the c program or call the c program in ruby…

---

## [Rails 3 Upgrade](https://www.ruby-forum.com/t/rails-3-upgrade/191800)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 1\
**Last updated:** [July 19, 2010, 3:23am UTC](https://www.ruby-forum.com/t/rails-3-upgrade/191800 "2010-07-19T03:23:06Z")

</div>

I have a working 2.3.5 rails app that I am upgrading to rails 3 beta 4. I had monkey-patched a couple of class methods to the Activerecord::Base class and put it in the lib directory. This has worked fine for ages in …

---

## ["\_index" gets appended to paths](https://www.ruby-forum.com/t/index-gets-appended-to-paths/191805)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 0\
**Last updated:** [July 19, 2010, 3:21am UTC](https://www.ruby-forum.com/t/index-gets-appended-to-paths/191805 "2010-07-19T03:21:52Z")

</div>

hi, guys, I found that some of my paths are getting an “\_index” appended to it. Reading http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/8c9c84e884680f90, it says that rails does so when an uncou…

---

## [Redcloth with rails3 and ruby 1.9.2](https://www.ruby-forum.com/t/redcloth-with-rails3-and-ruby-1-9-2/191801)

<div class="topic-metadata">

**Author:** [@oreng](https://www.ruby-forum.com/u/oreng)\
**Replies:** 0\
**Last updated:** [July 19, 2010, 2:51am UTC](https://www.ruby-forum.com/t/redcloth-with-rails3-and-ruby-1-9-2/191801 "2010-07-19T02:51:25Z")

</div>

is redcloth working with rails3 and 1.9.2? I don’t see it here - http://railsplugins.org/ redcloth 4.2.3 throws this exception when trying to use the method textilize: uninitialized constant ActionView::Helpers::Text…

---

## [How to embed ruby code](https://www.ruby-forum.com/t/how-to-embed-ruby-code/191794)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 19, 2010, 2:06am UTC](https://www.ruby-forum.com/t/how-to-embed-ruby-code/191794 "2010-07-19T02:06:22Z")

</div>

I am very much a novice learning ruby code right now. I already know how to write the code and open it in a command prompt. My question is how do I embed it into an html document? how do I use rails? Im not sure wh…

---

## [Button\_to\_remote using jQuery and Rails 3](https://www.ruby-forum.com/t/button-to-remote-using-jquery-and-rails-3/191796)

<div class="topic-metadata">

**Author:** [@Mark\_ASRichman](https://www.ruby-forum.com/u/Mark_ASRichman)\
**Replies:** 0\
**Last updated:** [July 19, 2010, 12:53am UTC](https://www.ruby-forum.com/t/button-to-remote-using-jquery-and-rails-3/191796 "2010-07-19T00:53:47Z")

</div>

Is this possible given the button\_to\_remote function seems to be defined as a Prototype helper? I’ve replaced my /public/javascripts/ rails.js with the jQuery driver. When I try to use button\_to\_remote I get the error…

---

## [What does this route mean?](https://www.ruby-forum.com/t/what-does-this-route-mean/191784)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 18, 2010, 6:04pm UTC](https://www.ruby-forum.com/t/what-does-this-route-mean/191784 "2010-07-18T18:04:14Z")

</div>

In this tutorial: http://asciicasts.com/episodes/160-authlogic It mentions the following to add to the “routes.rb” file. map.resources :users What does this line of script mean? And, how does it differ from map.conne…

---

## [Restful\_authentication](https://www.ruby-forum.com/t/restful-authentication/191782)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 4\
**Last updated:** [July 18, 2010, 4:30pm UTC](https://www.ruby-forum.com/t/restful-authentication/191782 "2010-07-18T16:30:54Z")

</div>

I’m having a problem getting the restful\_authentication plugin installed: GitHub - technoweenie/restful-authentication: inactive project, and wonder if anyone was able to get it installed. Thanks.

---

## [Iterate through model](https://www.ruby-forum.com/t/iterate-through-model/191783)

<div class="topic-metadata">

**Author:** [@fink](https://www.ruby-forum.com/u/fink)\
**Replies:** 4\
**Last updated:** [July 18, 2010, 4:13pm UTC](https://www.ruby-forum.com/t/iterate-through-model/191783 "2010-07-18T16:13:19Z")

</div>

Hi there, my problem is kind of difficult to explain but maybe simple to answer: I have a model (book) with author:string, title:string, id:integer and so on. If I do a query @book = Book.find(:id =\> 123) the result …

---

## [\--skip-model](https://www.ruby-forum.com/t/skip-model/191771)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 4\
**Last updated:** [July 18, 2010, 3:48pm UTC](https://www.ruby-forum.com/t/skip-model/191771 "2010-07-18T15:48:11Z")

</div>

I watching this case from Railscasts regarding Authlogic: At 7:44 of the cast, it creates a user\_session as follows: script/generate nifty\_scaffold user\_session --skip-model username:string password:string But, when…

---

## [I18n to\_f](https://www.ruby-forum.com/t/i18n-to-f/191776)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 0\
**Last updated:** [July 18, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/i18n-to-f/191776 "2010-07-18T14:16:46Z")

</div>

hi. In the german locale the float delimiter is ‘,’ not ‘.’. I use this yml file: What do I have to do that ‘6,3312’.to\_f works? thanks. Michi

---

## [XML parsing/mapping?](https://www.ruby-forum.com/t/xml-parsing-mapping/191777)

<div class="topic-metadata">

**Author:** [@Lasse](https://www.ruby-forum.com/u/Lasse)\
**Replies:** 0\
**Last updated:** [July 18, 2010, 2:08pm UTC](https://www.ruby-forum.com/t/xml-parsing-mapping/191777 "2010-07-18T14:08:07Z")

</div>

I have a problem parsing/mapping a xml response from a API. I would like to get the id numer of a keyword when the keyword.text is like ‘Engels’ So i would like search in the xml response for the text ‘Engels’ than i…

---

## [Password\_confirmation](https://www.ruby-forum.com/t/password-confirmation/191773)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 0\
**Last updated:** [July 18, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/password-confirmation/191773 "2010-07-18T13:18:38Z")

</div>

In Railscasts episode regarding “Authlogic” #160 Authlogic - RailsCasts, at 5:39, it adds a password confirmation field, and calls it :password\_confirmation Is :password\_confirmation part of the Authlogic or can be us…

---

## [Inconsistent HTTP Errors from Uploading Images with Uploadif](https://www.ruby-forum.com/t/inconsistent-http-errors-from-uploading-images-with-uploadif/191774)

<div class="topic-metadata">

**Author:** [@davis](https://www.ruby-forum.com/u/davis)\
**Replies:** 0\
**Last updated:** [July 18, 2010, 12:50pm UTC](https://www.ruby-forum.com/t/inconsistent-http-errors-from-uploading-images-with-uploadif/191774 "2010-07-18T12:50:04Z")

</div>

I’m having great difficulty in finding a bug preventing some uploads to my rails app through Uploadify. Here is the error I’m receiving: http://j.imagehost.org/0353/uploadify-errors.png The thing that’s making this d…

---

## [\<%= yield %\>](https://www.ruby-forum.com/t/yield/191769)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 18, 2010, 12:43pm UTC](https://www.ruby-forum.com/t/yield/191769 "2010-07-18T12:43:29Z")

</div>

What does \<%= yield %\> mean that someone can find in the .html.erb file in the “layouts” directory? Is it just rendering the data to show up on the page? Thanks.

---

## [Could not find a valid gem 'rails' (\>= 0) in any repository](https://www.ruby-forum.com/t/could-not-find-a-valid-gem-rails-0-in-any-repository/189981)

<div class="topic-metadata">

**Author:** [@Sakthi\_Raam\_Krishna](https://www.ruby-forum.com/u/Sakthi_Raam_Krishna)\
**Replies:** 2\
**Last updated:** [July 18, 2010, 11:34am UTC](https://www.ruby-forum.com/t/could-not-find-a-valid-gem-rails-0-in-any-repository/189981 "2010-07-18T11:34:45Z")

</div>

Dear Friend’s Could not find a valid gem 'rails' (\>= 0) in any repository These is the error which i am facing while i am invoking the gem install rails command. my gem version is gem -v 1.3.7 M…

---

## [Is it like this in new.html.erb](https://www.ruby-forum.com/t/is-it-like-this-in-new-html-erb/191765)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 18, 2010, 11:28am UTC](https://www.ruby-forum.com/t/is-it-like-this-in-new-html-erb/191765 "2010-07-18T11:28:27Z")

</div>

In the new.html.erb file, when you have a :title field for example, you will find the following: \<%= f.label :title %\>\< When you view this page, you will find that the label is written as: Title Does Rails convert t…

---

## [What does this command mean?](https://www.ruby-forum.com/t/what-does-this-command-mean/191768)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 18, 2010, 11:26am UTC](https://www.ruby-forum.com/t/what-does-this-command-mean/191768 "2010-07-18T11:26:55Z")

</div>

I was watching a cast from Railcasts, and came to the following command: script/generate scaffold user username:string email:string password:string new edit What does “new” and “edit” do (Represent) here? Thanks.

---

## [Error: Rails requires RubyGems \>= . Please install RubyGems](https://www.ruby-forum.com/t/error-rails-requires-rubygems-please-install-rubygems/156153)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 9\
**Last updated:** [July 18, 2010, 1:30am UTC](https://www.ruby-forum.com/t/error-rails-requires-rubygems-please-install-rubygems/156153 "2010-07-18T01:30:04Z")

</div>

In the directory of my rails app i run: ruby script/console Rails requires RubyGems \>= . Please install RubyGems and try again: http://rubygems.rubyforge.org gem -v 1.3.1 gem list | grep rails rails (2.2.2, 2.…

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

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