# Rails

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

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

---

## [Only One Controller + Urgent](https://www.ruby-forum.com/t/only-one-controller-urgent/171807)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 8\
**Last updated:** [July 21, 2009, 3:30pm UTC](https://www.ruby-forum.com/t/only-one-controller-urgent/171807 "2009-07-21T15:30:30Z")

</div>

Hi Champs, Need Help … :frowning: Actually the thing is that i am having many controllers a, b, c and d… But what i want it that only “a” should be displayed to the users … b, c, d not … Is there any way to do it … …

---

## [Warning: Gem::SourceIndex#search](https://www.ruby-forum.com/t/warning-gem-sourceindex-search/172404)

<div class="topic-metadata">

**Author:** [@Renzo](https://www.ruby-forum.com/u/Renzo)\
**Replies:** 1\
**Last updated:** [July 21, 2009, 3:12pm UTC](https://www.ruby-forum.com/t/warning-gem-sourceindex-search/172404 "2009-07-21T15:12:57Z")

</div>

C:\\Ruby\\SITES\\firstproject\>cd… C:\\Ruby\\SITES\>cd myapp C:\\Ruby\\SITES\\myapp\>ruby script/server ./script/…/config/boot.rb:25:Warning: Gem::SourceIndex#search support for Strin g patterns is deprecated, use #find\_name …

---

## [New to Rails](https://www.ruby-forum.com/t/new-to-rails/172421)

<div class="topic-metadata">

**Author:** [@Mitin\_R](https://www.ruby-forum.com/u/Mitin_R)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 3:04pm UTC](https://www.ruby-forum.com/t/new-to-rails/172421 "2009-07-21T15:04:56Z")

</div>

Hi everyone. I am new to ROR can someone guide me through the process of learning ROR

---

## [About Error handler](https://www.ruby-forum.com/t/about-error-handler/172423)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/about-error-handler/172423 "2009-07-21T13:38:55Z")

</div>

Hi I am new to ruby on rails I need to know one thing Is there any way to externalize all the error messages in one file and access – Karthik.k Mobile - +91-9894991640

---

## [How to call model that belongs to that controller](https://www.ruby-forum.com/t/how-to-call-model-that-belongs-to-that-controller/172355)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 6\
**Last updated:** [July 21, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/how-to-call-model-that-belongs-to-that-controller/172355 "2009-07-21T12:42:38Z")

</div>

In controller ,there is something like self. to call the controller itsself if i want to call model that belong to that controller in controller, How could i do. Thank, Golf

---

## [Hello](https://www.ruby-forum.com/t/hello/172396)

<div class="topic-metadata">

**Author:** [@eric](https://www.ruby-forum.com/u/eric)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 12:32pm UTC](https://www.ruby-forum.com/t/hello/172396 "2009-07-21T12:32:42Z")

</div>

Hello everyone this is my first post. I come from a .NET background but I have seen first hand the elegance of ruby and now i’m hooked. I’m learning rails on 2.3.x and have worked through setting up a db connection an…

---

## [Associations problem](https://www.ruby-forum.com/t/associations-problem/172390)

<div class="topic-metadata">

**Author:** [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 12:29pm UTC](https://www.ruby-forum.com/t/associations-problem/172390 "2009-07-21T12:29:11Z")

</div>

Hi all, I have some associations setup such that: class Job has\_many :applications end class Candidate has\_many :applications end class Application belongs\_to :job belongs\_to :candidate end When viewing a par…

---

## [Getting mysql gem to work with WAMP's MySQL](https://www.ruby-forum.com/t/getting-mysql-gem-to-work-with-wamps-mysql/172386)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 6\
**Last updated:** [July 21, 2009, 11:43am UTC](https://www.ruby-forum.com/t/getting-mysql-gem-to-work-with-wamps-mysql/172386 "2009-07-21T11:43:37Z")

</div>

I use WAMP and I don’t really want to install another MySQL just to work with Rails. How can I make the mysql gem use WAMP’s MySQL?

---

## [Help with gsub](https://www.ruby-forum.com/t/help-with-gsub/172214)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 3\
**Last updated:** [July 21, 2009, 11:28am UTC](https://www.ruby-forum.com/t/help-with-gsub/172214 "2009-07-21T11:28:24Z")

</div>

I have a string of state codes (ie ‘MD,PA,VA,WV’) i’m passing from a select list (:allow\_multiple =\> true), in which I’m trying to replace the commas with “’,’”. I have the following gsub, which works fine in irb, ho…

---

## [Date format issue: Empty (NULL) date is getting save in mysql DB](https://www.ruby-forum.com/t/date-format-issue-empty-null-date-is-getting-save-in-mysql-db/172398)

<div class="topic-metadata">

**Author:** [@gmal](https://www.ruby-forum.com/u/gmal)\
**Replies:** 1\
**Last updated:** [July 21, 2009, 11:12am UTC](https://www.ruby-forum.com/t/date-format-issue-empty-null-date-is-getting-save-in-mysql-db/172398 "2009-07-21T11:12:20Z")

</div>

I am having issue while saving date (effective\_at) to mysql databse usning format MM-DD-YY. The date is getting saved as null but while using format ‘YYYY-MM-DD’ its working perfectly. Please see below. Processing Use…

---

## [Intermittent routing problem](https://www.ruby-forum.com/t/intermittent-routing-problem/172340)

<div class="topic-metadata">

**Author:** [@duh](https://www.ruby-forum.com/u/duh)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 10:15am UTC](https://www.ruby-forum.com/t/intermittent-routing-problem/172340 "2009-07-21T10:15:55Z")

</div>

I’m having some access problems, on again, off again, with access my web pages. I’m using InstantRails, have generated several web projects, and for no reason, I start getting: Routing Error No route matches “/emplo…

---

## [Why page.replace\_html can send only one collections?](https://www.ruby-forum.com/t/why-page-replace-html-can-send-only-one-collections/172412)

<div class="topic-metadata">

**Author:** [@thriving](https://www.ruby-forum.com/u/thriving)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 4:29am UTC](https://www.ruby-forum.com/t/why-page-replace-html-can-send-only-one-collections/172412 "2009-07-21T04:29:57Z")

</div>

I just want to understand why we can send only one paramater in collections , and how to solve the problem if we want to send more than one collection ? render :update do |page| page.replace\_html :todoItems, :partial…

---

## [AJAX/Javascript Question](https://www.ruby-forum.com/t/ajax-javascript-question/172408)

<div class="topic-metadata">

**Author:** [@Jeffrey\_LSTaylor](https://www.ruby-forum.com/u/Jeffrey_LSTaylor)\
**Replies:** 1\
**Last updated:** [July 21, 2009, 3:10am UTC](https://www.ruby-forum.com/t/ajax-javascript-question/172408 "2009-07-21T03:10:30Z")

</div>

What is the difference between these two: render :js =\> "window.open(’#{url}’) and render :update do |page| page \<\< "window.open(’#{url}’) end TIA, Jeffrey

---

## [Get member and collection actions of a given controller](https://www.ruby-forum.com/t/get-member-and-collection-actions-of-a-given-controller/172403)

<div class="topic-metadata">

**Author:** [@Esdras\_M](https://www.ruby-forum.com/u/Esdras_M)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 2:06am UTC](https://www.ruby-forum.com/t/get-member-and-collection-actions-of-a-given-controller/172403 "2009-07-21T02:06:47Z")

</div>

Is there any easy way to do that? In a given controller or resource I want to get the routes or the actions of the controller, and I want to know if they are member or collection actions. When I have an action calle…

---

## [Rake error](https://www.ruby-forum.com/t/rake-error/172360)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 9\
**Last updated:** [July 21, 2009, 1:30am UTC](https://www.ruby-forum.com/t/rake-error/172360 "2009-07-21T01:30:34Z")

</div>

When I run rake test:units I get this error: 292 tests, 350 assertions, 2 failures, 13 errors rake aborted! Command failed with status (1): \[/usr/local/bin/ruby -I"lib:test" "/ usr/loc…\] This error just showed up ye…

---

## [Rails and Qooxdoo](https://www.ruby-forum.com/t/rails-and-qooxdoo/172339)

<div class="topic-metadata">

**Author:** [@glex](https://www.ruby-forum.com/u/glex)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 12:33am UTC](https://www.ruby-forum.com/t/rails-and-qooxdoo/172339 "2009-07-21T00:33:15Z")

</div>

Has anyone used Ruby on Rails with Qooxdoo? How is it?

---

## [Polymorphic Comment notification to Users?](https://www.ruby-forum.com/t/polymorphic-comment-notification-to-users/172395)

<div class="topic-metadata">

**Author:** [@millisami](https://www.ruby-forum.com/u/millisami)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 12:33am UTC](https://www.ruby-forum.com/t/polymorphic-comment-notification-to-users/172395 "2009-07-21T00:33:15Z")

</div>

Hi, my webapp has registered users and it has articles, blog posts, gossips too. For all these resources I’ve a polymorphic Comment model which is listed below. id content commentable\_id commentable\_ty…

---

## [How to use view\_paths() and why you need to use](https://www.ruby-forum.com/t/how-to-use-view-paths-and-why-you-need-to-use/172393)

<div class="topic-metadata">

**Author:** [@pal](https://www.ruby-forum.com/u/pal)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 12:32am UTC](https://www.ruby-forum.com/t/how-to-use-view-paths-and-why-you-need-to-use/172393 "2009-07-21T00:32:39Z")

</div>

how to use view\_paths() and why you need to use. What is the purpose. can you explain and give some sample code.

---

## [Ruby 1.9.1 One-Click Installer for Windows](https://www.ruby-forum.com/t/ruby-1-9-1-one-click-installer-for-windows/172392)

<div class="topic-metadata">

**Author:** [@rohitchauhan802](https://www.ruby-forum.com/u/rohitchauhan802)\
**Replies:** 0\
**Last updated:** [July 21, 2009, 12:32am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-one-click-installer-for-windows/172392 "2009-07-21T00:32:39Z")

</div>

Latest Ruby 1.9.1 One-Click Installer with No-Hassle Rails Installation Filename : Ruby 1.9.1 One-Click Installer for Windows Author : Rohit C. Installation : Click to Install Ruby . Follow Instructions . To Insta…

---

## [Noob syntax question](https://www.ruby-forum.com/t/noob-syntax-question/172391)

<div class="topic-metadata">

**Author:** [@internetchris](https://www.ruby-forum.com/u/internetchris)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 12:31am UTC](https://www.ruby-forum.com/t/noob-syntax-question/172391 "2009-07-21T00:31:29Z")

</div>

Hey everyone, I’m just solidifying my understanding of ruby “example by example”. Can someone let me know if I understand this correctly… In my view I have the following… \<%= render :partial =\> “sidebar” , :locals =\>…

---

## [Strange Passenger behavior on OS X](https://www.ruby-forum.com/t/strange-passenger-behavior-on-os-x/172379)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 3\
**Last updated:** [July 21, 2009, 12:25am UTC](https://www.ruby-forum.com/t/strange-passenger-behavior-on-os-x/172379 "2009-07-21T00:25:03Z")

</div>

I’ve just spent several days intermittently trying to get a development rails app working again under passenger on OS X. I still don’t understand what happened. This app was working fine until a few days ago. All of …

---

## [Paymo {mobile payment integration with}?](https://www.ruby-forum.com/t/paymo-mobile-payment-integration-with/171401)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 2\
**Last updated:** [July 21, 2009, 12:23am UTC](https://www.ruby-forum.com/t/paymo-mobile-payment-integration-with/171401 "2009-07-21T00:23:18Z")

</div>

Hello, it seems a widely used mobile phone payment system, but I can’t find anything on github (or google) to go with ruby/rails… anyone? http://paymo.com/ Ciao! – Emanuele T. +1 (619) 549 3230 1985 Sherington Pl…

---

## [Form\_for syntax?](https://www.ruby-forum.com/t/form-for-syntax/172383)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 5\
**Last updated:** [July 20, 2009, 10:45pm UTC](https://www.ruby-forum.com/t/form-for-syntax/172383 "2009-07-20T22:45:06Z")

</div>

I have been using this namespaced form\_for syntax with no problems: \<% form\_for \[:admin, @products\] do |f| %\> However, now that I am working with a model and controller called “news” which has no differentiation betwe…

---

## [Print disabling dialog box](https://www.ruby-forum.com/t/print-disabling-dialog-box/172377)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 1\
**Last updated:** [July 20, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/print-disabling-dialog-box/172377 "2009-07-20T21:49:34Z")

</div>

Hello, I need a functionality where i can print out the content on just one click with out dialog box alert. So is it possible with ruby on rails? Thanks

---

## [Is flickr plugin that slow in rails?](https://www.ruby-forum.com/t/is-flickr-plugin-that-slow-in-rails/172381)

<div class="topic-metadata">

**Author:** [@eltercero](https://www.ruby-forum.com/u/eltercero)\
**Replies:** 0\
**Last updated:** [July 20, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/is-flickr-plugin-that-slow-in-rails/172381 "2009-07-20T20:10:40Z")

</div>

Hi there, I’m creating a little web app that do, among other stuff, a bit of flickr search. The code is like this: VIEW \<% form\_remote\_tag :url =\> {:action =\> ‘search’}, :update =\> ‘photos’, :complete =\> visual\_effe…

---

## [Easiest User autentification](https://www.ruby-forum.com/t/easiest-user-autentification/172374)

<div class="topic-metadata">

**Author:** [@Sergio\_ASGmail](https://www.ruby-forum.com/u/Sergio_ASGmail)\
**Replies:** 1\
**Last updated:** [July 20, 2009, 6:32pm UTC](https://www.ruby-forum.com/t/easiest-user-autentification/172374 "2009-07-20T18:32:31Z")

</div>

If you have some pages to be password managed and the site is ready do you hace know a plugin for thath. Sergio

---

## [Adding a view (newby question)](https://www.ruby-forum.com/t/adding-a-view-newby-question/172372)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 3\
**Last updated:** [July 20, 2009, 5:33pm UTC](https://www.ruby-forum.com/t/adding-a-view-newby-question/172372 "2009-07-20T17:33:47Z")

</div>

How do you add an extra view? I have “new, edit, show, etc.”. I’m having trouble using RESTful paths. “new\_viewname\_path” works for linking to the “new” view but if I try something like “myview\_viewname\_path” I get a…

---

## [Mongrel Server error - newbie question](https://www.ruby-forum.com/t/mongrel-server-error-newbie-question/172338)

<div class="topic-metadata">

**Author:** [@koko](https://www.ruby-forum.com/u/koko)\
**Replies:** 1\
**Last updated:** [July 20, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/mongrel-server-error-newbie-question/172338 "2009-07-20T17:21:47Z")

</div>

Dear All, I am very new to RoR. I have got the following error after Chnaging mysql database.yml and restart the Server. rails employee rails -d mysql employee and insert Username & Password in the database.yml an…

---

## [Ruby 1.9.1 One-Click Installer for Windows](https://www.ruby-forum.com/t/ruby-1-9-1-one-click-installer-for-windows/172356)

<div class="topic-metadata">

**Author:** [@rohitchauhan802](https://www.ruby-forum.com/u/rohitchauhan802)\
**Replies:** 2\
**Last updated:** [July 20, 2009, 4:13pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-one-click-installer-for-windows/172356 "2009-07-20T16:13:02Z")

</div>

Latest Ruby 1.9.1 One-Click Installer with No-Hassle Rails Installation Filename : Ruby 1.9.1 One-Click Installer for Windows Author : Rohit C. Facebook URL : Facebook Installation : Click to Install Ruby . Follow…

---

## [Runing Rake Error](https://www.ruby-forum.com/t/runing-rake-error/172335)

<div class="topic-metadata">

**Author:** [@Komla](https://www.ruby-forum.com/u/Komla)\
**Replies:** 1\
**Last updated:** [July 20, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/runing-rake-error/172335 "2009-07-20T15:53:29Z")

</div>

Hi everybody, I am trying to run rake command “rake db:migrate” and I got " rake aborted " I don’t know what’s wrong here, I need help !! Runing Rake Errors C:\\Users\\Eco\\Desktop\\music\_library\\music\>rake db:migrate …

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

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