# Rails

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

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

---

## [Problems with the money gem](https://www.ruby-forum.com/t/problems-with-the-money-gem/194911)

<div class="topic-metadata">

**Author:** [@hotjuneshen](https://www.ruby-forum.com/u/hotjuneshen)\
**Replies:** 9\
**Last updated:** [September 14, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/problems-with-the-money-gem/194911 "2010-09-14T16:21:27Z")

</div>

I have a new app (Rails 2.3.8) that uses lots of money fields. I’m using the money gem (3.0.5) and the acts\_as\_money plugin. I’ve written a number of rspec model examples and everything seems to be working fine there. …

---

## [Can't see http://localhost:3000/pages/home in browser](https://www.ruby-forum.com/t/cant-see-http-localhost-3000-pages-home-in-browser/197056)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 0\
**Last updated:** [September 14, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/cant-see-http-localhost-3000-pages-home-in-browser/197056 "2010-09-14T14:47:56Z")

</div>

Am working my way through the railstutorial.org lesson at http://railstutorial.org/chapters/filling-in-the-layout#top Am not clear about how to start the autotest, and when I tried to see the above page in the broswer…

---

## [Still routes](https://www.ruby-forum.com/t/still-routes/194963)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 1\
**Last updated:** [September 14, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/still-routes/194963 "2010-09-14T14:18:04Z")

</div>

Can I do something like that? resources :rusers do resources :deliveries resources :doc\_details end Or it is best to do: resources :rusers do resources :deliveries end resources :rusers do resources :doc\_detail…

---

## [Req: Method executed in link\_to](https://www.ruby-forum.com/t/req-method-executed-in-link-to/194943)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 14, 2010, 1:31pm UTC](https://www.ruby-forum.com/t/req-method-executed-in-link-to/194943 "2010-09-14T13:31:14Z")

</div>

Group, This might very well be Rails 102 stuff, but it’s doing my little head in. Simple request - I want to create a link within my View to fire off a system call to run an external program. In this example it’s pr…

---

## [Formtastic options](https://www.ruby-forum.com/t/formtastic-options/194876)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 8\
**Last updated:** [September 14, 2010, 11:33am UTC](https://www.ruby-forum.com/t/formtastic-options/194876 "2010-09-14T11:33:54Z")

</div>

Hello, I’m looking at formtastic options but I cannot see how I can add some HTML beside the input field. I have select tag and I and to allow the visitor to add some text in it. Those buttons “add new text” should b…

---

## [Query Multiple tables](https://www.ruby-forum.com/t/query-multiple-tables/194899)

<div class="topic-metadata">

**Author:** [@PalaniKannan\_K](https://www.ruby-forum.com/u/PalaniKannan_K)\
**Replies:** 3\
**Last updated:** [September 14, 2010, 9:53am UTC](https://www.ruby-forum.com/t/query-multiple-tables/194899 "2010-09-14T09:53:30Z")

</div>

Hi, select \* from table1 inner join table2 on table1.foreign\_key = table2.foreign\_key select \* from table1 inner join table2 on table1.foreign\_key = table2.foreign\_key join table3 on table2.foreign\_key=table3.foreign…

---

## [What I've missed in routes.rb?](https://www.ruby-forum.com/t/what-ive-missed-in-routes-rb/194903)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 13\
**Last updated:** [September 14, 2010, 9:16am UTC](https://www.ruby-forum.com/t/what-ive-missed-in-routes-rb/194903 "2010-09-14T09:16:01Z")

</div>

In routes.rb I’ve put: resources :sessions controller is: class SessionsController \< ApplicationController def destroy session\[:id\] = nil session.delete(:casfilteruser) CASClient::Frameworks::Rails::Filter.logout(…

---

## [STI and nested object on subclass](https://www.ruby-forum.com/t/sti-and-nested-object-on-subclass/194895)

<div class="topic-metadata">

**Author:** [@javier](https://www.ruby-forum.com/u/javier)\
**Replies:** 12\
**Last updated:** [September 14, 2010, 8:31am UTC](https://www.ruby-forum.com/t/sti-and-nested-object-on-subclass/194895 "2010-09-14T08:31:33Z")

</div>

Hi there! I’m trying to create an inheritance between two classes where the child class has its own relations… but I it looks like the concept in rails is a bit different than in other languages/framworks (or I’m doin…

---

## [View and Controllers association](https://www.ruby-forum.com/t/view-and-controllers-association/194905)

<div class="topic-metadata">

**Author:** [@awijeet](https://www.ruby-forum.com/u/awijeet)\
**Replies:** 5\
**Last updated:** [September 14, 2010, 7:52am UTC](https://www.ruby-forum.com/t/view-and-controllers-association/194905 "2010-09-14T07:52:34Z")

</div>

in views file. \<%= render ‘row’, :object =\> @row\_1 %\> \_row\_html.erb \<% row.each do |i| %\> \<%- if i.nil? -%\> \<%= render ‘users/signup’ %\> \<%- elsif i.respond\_to?(‘category\_id’) -%\> \<%# render partial\_for\_post(i.cat…

---

## [Pdf.table](https://www.ruby-forum.com/t/pdf-table/194951)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 0\
**Last updated:** [September 14, 2010, 7:03am UTC](https://www.ruby-forum.com/t/pdf-table/194951 "2010-09-14T07:03:59Z")

</div>

Hi, i have a table inside Prawn file like grandtotal=@sql\_query.size total=\[""\],\[""\] pdf.table total, :width =\> 768, :headers =\> \["Grand Total : #{grandtotal} "\], :header\_color =\> ‘e5e5e5’, :border\_style =\> :unde…

---

## [Deprecation warning with form\_tag](https://www.ruby-forum.com/t/deprecation-warning-with-form-tag/194922)

<div class="topic-metadata">

**Author:** [@rodrigo3n](https://www.ruby-forum.com/u/rodrigo3n)\
**Replies:** 4\
**Last updated:** [September 14, 2010, 5:50am UTC](https://www.ruby-forum.com/t/deprecation-warning-with-form-tag/194922 "2010-09-14T05:50:00Z")

</div>

Hello everyone, I am using Rails 3 and receiving an deprecation warning when running the specs of my app. The warning: \*\*\*\*…F.DEPRECATION WARNING: \<% %\> style block helpers are deprecated. Please use \<%= %\>. (called f…

---

## [Paperclip - helppppp](https://www.ruby-forum.com/t/paperclip-helppppp/194934)

<div class="topic-metadata">

**Author:** [@daze](https://www.ruby-forum.com/u/daze)\
**Replies:** 1\
**Last updated:** [September 14, 2010, 4:37am UTC](https://www.ruby-forum.com/t/paperclip-helppppp/194934 "2010-09-14T04:37:27Z")

</div>

I keep seeing this error when I try to upload an image: 2 errors prohibited this panel from being saved There were problems with the following fields: Image C:/Users/Family/AppData/Local/Temp/stream,10032,0.png is not …

---

## [Installation and versioning issues](https://www.ruby-forum.com/t/installation-and-versioning-issues/194929)

<div class="topic-metadata">

**Author:** [@nsputnik](https://www.ruby-forum.com/u/nsputnik)\
**Replies:** 4\
**Last updated:** [September 14, 2010, 2:51am UTC](https://www.ruby-forum.com/t/installation-and-versioning-issues/194929 "2010-09-14T02:51:30Z")

</div>

Ok, I’m new to Rails, and I was hoping to get some advice on how to get started. I’m coming from a .NET background, and from what I’ve seen of Rails, it looks perfect for a little web idea I had. So I got a book from …

---

## [Routing question](https://www.ruby-forum.com/t/routing-question/194928)

<div class="topic-metadata">

**Author:** [@Luis\_Correa\_dSAlmei](https://www.ruby-forum.com/u/Luis_Correa_dSAlmei)\
**Replies:** 0\
**Last updated:** [September 13, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/routing-question/194928 "2010-09-13T23:17:15Z")

</div>

Hello Given the following rules MyApp::Application.routes.draw do |map| resources :accounts do resources :comments end match '\*path' =\> redirect("/accounts/%{path}") end Can we get ActionDispatch to, rather tha…

---

## [Rails 3: finding a record by name in multilingual app](https://www.ruby-forum.com/t/rails-3-finding-a-record-by-name-in-multilingual-app/194855)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 11\
**Last updated:** [September 13, 2010, 10:56pm UTC](https://www.ruby-forum.com/t/rails-3-finding-a-record-by-name-in-multilingual-app/194855 "2010-09-13T22:56:11Z")

</div>

Hello, I upgraded my application from Rails 2 to Rails 3 and ran into a problem. In rails 2 I could use the english name of the record to find it like: Page.find\_by\_name(“Welcome”) even though the user chose German …

---

## [After\_create not being called in seeds.rb?](https://www.ruby-forum.com/t/after-create-not-being-called-in-seeds-rb/194851)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 11\
**Last updated:** [September 13, 2010, 10:05pm UTC](https://www.ruby-forum.com/t/after-create-not-being-called-in-seeds-rb/194851 "2010-09-13T22:05:02Z")

</div>

Hello, I’m using the seeds.rb to create some user records: 100.times do user = User.new user.username = Faker::Name.first\_name user.email = user.username+"@example.com" user.save! end This works just fine and the…

---

## [Ri-cal mysql table](https://www.ruby-forum.com/t/ri-cal-mysql-table/194925)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [September 13, 2010, 9:42pm UTC](https://www.ruby-forum.com/t/ri-cal-mysql-table/194925 "2010-09-13T21:42:49Z")

</div>

Which columns should a ri-cal calendar table in mysql have?

---

## [Rails Commenting, Plugins?](https://www.ruby-forum.com/t/rails-commenting-plugins/194880)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 11\
**Last updated:** [September 13, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/rails-commenting-plugins/194880 "2010-09-13T21:41:50Z")

</div>

Hello, I’m looking to add comments to records in my app like Books. So a user can view a Book and then comment on it… As a newbie, is this something that I should build from scratch, or are there any popular Commenti…

---

## [Onload and .html.erb](https://www.ruby-forum.com/t/onload-and-html-erb/194878)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 7\
**Last updated:** [September 13, 2010, 6:50pm UTC](https://www.ruby-forum.com/t/onload-and-html-erb/194878 "2010-09-13T18:50:25Z")

</div>

I have a Javascript file that finds the top-left coordinates of an element (image) as follows: function getTopLeftCoordinate() { x=document.getElementById(‘coordinate’).offsetLeft y=document.getElementById(‘coordinat…

---

## [Redirect\_to kills my session variable](https://www.ruby-forum.com/t/redirect-to-kills-my-session-variable/194914)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 0\
**Last updated:** [September 13, 2010, 5:48pm UTC](https://www.ruby-forum.com/t/redirect-to-kills-my-session-variable/194914 "2010-09-13T17:48:07Z")

</div>

Hi, I’m trying to set a session variable in one action of application\_controller.rb, which is then accessed in a second action of the same controller following a redirect. Here’s the code. def cookie\_test if cookie…

---

## [REST perhaps I don't undestand it](https://www.ruby-forum.com/t/rest-perhaps-i-dont-undestand-it/194773)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 11\
**Last updated:** [September 13, 2010, 5:09pm UTC](https://www.ruby-forum.com/t/rest-perhaps-i-dont-undestand-it/194773 "2010-09-13T17:09:36Z")

</div>

I find hard to work with rest and custom actions. I have an action def logout session\[:user = nil end for controller user. In my view I call \<%= link\_to "Logout’, :action =\> ‘logout’. When I click on link the erro…

---

## [X Modek object into Y controller](https://www.ruby-forum.com/t/x-modek-object-into-y-controller/194910)

<div class="topic-metadata">

**Author:** [@awijeet](https://www.ruby-forum.com/u/awijeet)\
**Replies:** 2\
**Last updated:** [September 13, 2010, 5:04pm UTC](https://www.ruby-forum.com/t/x-modek-object-into-y-controller/194910 "2010-09-13T17:04:19Z")

</div>

How to use x.new() in y\_controller.rb where x is model and y is controller? Thanks

---

## [Rails 3 render partial](https://www.ruby-forum.com/t/rails-3-render-partial/191868)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 9\
**Last updated:** [September 13, 2010, 4:37pm UTC](https://www.ruby-forum.com/t/rails-3-render-partial/191868 "2010-09-13T16:37:58Z")

</div>

The following rails 2.3.x code is not working in rails 3 beta 4: def render\_crud\_table(obj,controller\_name,columns,search\_fields\_array,status\_array,actions) render :partial =\> ‘shared/crud\_maint\_table’, :object =\> obj…

---

## [Intelligent Searchform](https://www.ruby-forum.com/t/intelligent-searchform/194908)

<div class="topic-metadata">

**Author:** [@coldie](https://www.ruby-forum.com/u/coldie)\
**Replies:** 0\
**Last updated:** [September 13, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/intelligent-searchform/194908 "2010-09-13T16:27:41Z")

</div>

Hi there, i wrote an intelligent searchform, which is divided into categories. Just a short overview of the workflow. For every keyword, which is entered in the searchform the matches are checked. So we’ve got a rank …

---

## [Read data in JSON format](https://www.ruby-forum.com/t/read-data-in-json-format/194890)

<div class="topic-metadata">

**Author:** [@amabdelsalam](https://www.ruby-forum.com/u/amabdelsalam)\
**Replies:** 1\
**Last updated:** [September 13, 2010, 4:10pm UTC](https://www.ruby-forum.com/t/read-data-in-json-format/194890 "2010-09-13T16:10:37Z")

</div>

Hi, I have some data stored in file in JSON format. I’d like to read these data and store them into database in rail application. Is there any plugin to perform this? or direct code? Should I convert this data to csv…

---

## [Could not find \[GEM\] locally or in a repository](https://www.ruby-forum.com/t/could-not-find-gem-locally-or-in-a-repository/194888)

<div class="topic-metadata">

**Author:** [@jzm](https://www.ruby-forum.com/u/jzm)\
**Replies:** 10\
**Last updated:** [September 13, 2010, 3:43pm UTC](https://www.ruby-forum.com/t/could-not-find-gem-locally-or-in-a-repository/194888 "2010-09-13T15:43:37Z")

</div>

Hey Guys, How could I fix the following: “gem install --no-rdoc --no-ri kete-feedzirra” ERROR: could not find gem kete-feedzirra locally or in a repository “gem install --no-rdoc --no-ri libxml-ruby” ERROR: could …

---

## [Persistance connection with database](https://www.ruby-forum.com/t/persistance-connection-with-database/194698)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 5\
**Last updated:** [September 13, 2010, 2:47pm UTC](https://www.ruby-forum.com/t/persistance-connection-with-database/194698 "2010-09-13T14:47:54Z")

</div>

Hey , is there any easy way to check for new values in database and show update value on view without refreshing page ?

---

## [Problem with daemonizing rails3](https://www.ruby-forum.com/t/problem-with-daemonizing-rails3/194897)

<div class="topic-metadata">

**Author:** [@willwach](https://www.ruby-forum.com/u/willwach)\
**Replies:** 0\
**Last updated:** [September 13, 2010, 10:44am UTC](https://www.ruby-forum.com/t/problem-with-daemonizing-rails3/194897 "2010-09-13T10:44:21Z")

</div>

Hi there, on two different systems I have the same problem. Linux Fedora and Linux Ubuntu. Both with mongrel as server. When running rails with “rails s” it does. When trying “rails s -d” it says that it is starting…

---

## [Remove membership](https://www.ruby-forum.com/t/remove-membership/194891)

<div class="topic-metadata">

**Author:** [@Brian\_Prior](https://www.ruby-forum.com/u/Brian_Prior)\
**Replies:** 1\
**Last updated:** [September 13, 2010, 10:29am UTC](https://www.ruby-forum.com/t/remove-membership/194891 "2010-09-13T10:29:08Z")

</div>

Please remove me from this group

---

## [Rails 2.3.x documentation archive?](https://www.ruby-forum.com/t/rails-2-3-x-documentation-archive/194819)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 4\
**Last updated:** [September 13, 2010, 10:06am UTC](https://www.ruby-forum.com/t/rails-2-3-x-documentation-archive/194819 "2010-09-13T10:06:53Z")

</div>

Hi, I’m a developer on several projects using rails 2.3.4 and since the release of 3.0, I haven’t been able to find any documentation for 2.3.4 online. I have the rdocs from the gem install, but haven’t been able to …

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

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