# Rails

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

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

---

## [Displaying an image in a Rails form\_for](https://www.ruby-forum.com/t/displaying-an-image-in-a-rails-form-for/185466)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 4\
**Last updated:** [March 21, 2010, 2:13am UTC](https://www.ruby-forum.com/t/displaying-an-image-in-a-rails-form-for/185466 "2010-03-21T02:13:02Z")

</div>

Hi, I’ve got a public\\images\\DownArrow.jpg and app\\views\\expenses\\new.html.erb that want to present this image in the following context: \<%= f.label :vendor %\> \<%= f.text\_field :vendor %\> \<%= f.image …

---

## [I18n automation](https://www.ruby-forum.com/t/i18n-automation/185474)

<div class="topic-metadata">

**Author:** [@nellinux](https://www.ruby-forum.com/u/nellinux)\
**Replies:** 0\
**Last updated:** [March 21, 2010, 12:48am UTC](https://www.ruby-forum.com/t/i18n-automation/185474 "2010-03-21T00:48:10Z")

</div>

Hi, I am new to ROR and this group. I would like to install a ROR environment able to generate full localized applications, always in the same language (Italian for example), without having to edit by hand all templa…

---

## [Rails AJAX file upload without Flash and RJS, just a dream?](https://www.ruby-forum.com/t/rails-ajax-file-upload-without-flash-and-rjs-just-a-dream/185461)

<div class="topic-metadata">

**Author:** [@Lb2007](https://www.ruby-forum.com/u/Lb2007)\
**Replies:** 1\
**Last updated:** [March 20, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/rails-ajax-file-upload-without-flash-and-rjs-just-a-dream/185461 "2010-03-20T23:24:29Z")

</div>

As my app is continuing to grow a little older, I’ve come to the point where I want to allow a user to upload an avatar (with Paperclip) using AJAX. However, I’ve noticed just about the only way to get this done is to…

---

## [Accessing a Javascript variable in embedded Ruby](https://www.ruby-forum.com/t/accessing-a-javascript-variable-in-embedded-ruby/185473)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [March 20, 2010, 11:02pm UTC](https://www.ruby-forum.com/t/accessing-a-javascript-variable-in-embedded-ruby/185473 "2010-03-20T23:02:49Z")

</div>

Hi, I have a form that I am observing with observe\_field \<%= observe\_field :guess, :frequency =\> 0.6, :update =\> ‘ajaxWrapper’, :url =\> {:action =\> ‘feedback’, :only\_path =\> false}, :with =\> ‘corre…

---

## [Problem with videos on heroku](https://www.ruby-forum.com/t/problem-with-videos-on-heroku/185469)

<div class="topic-metadata">

**Author:** [@Roch\_Delsalle](https://www.ruby-forum.com/u/Roch_Delsalle)\
**Replies:** 0\
**Last updated:** [March 20, 2010, 8:18pm UTC](https://www.ruby-forum.com/t/problem-with-videos-on-heroku/185469 "2010-03-20T20:18:19Z")

</div>

Hi, I have recently moved my RoR app on the Heroku platform, and almost everything works fine apart from the videos. It works fine when my app runs in local but not on heroku. This is the error log I’m getting, if an…

---

## [Selective migrations possible?](https://www.ruby-forum.com/t/selective-migrations-possible/185424)

<div class="topic-metadata">

**Author:** [@Grary](https://www.ruby-forum.com/u/Grary)\
**Replies:** 10\
**Last updated:** [March 20, 2010, 5:58pm UTC](https://www.ruby-forum.com/t/selective-migrations-possible/185424 "2010-03-20T17:58:24Z")

</div>

Hi, I prefer to keep one migration per model, but lately I’m adding data that’s expensive to drop every time I change my models. How do I db:drop and db:migrate only selected tables/files? Basically, I want to ignore…

---

## [Associating a default paperclip image from a different model](https://www.ruby-forum.com/t/associating-a-default-paperclip-image-from-a-different-model/185300)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 3\
**Last updated:** [March 20, 2010, 3:19pm UTC](https://www.ruby-forum.com/t/associating-a-default-paperclip-image-from-a-different-model/185300 "2010-03-20T15:19:52Z")

</div>

Here’s some code, this is my NewsItem model as you can see… class NewsItem \< ActiveRecord::Base belongs\_to :country has\_attached\_file :image, :styles =\> { :original =\> ‘57x57’ }, :default\_url =\> ‘/images/football.png…

---

## [Script/generate error](https://www.ruby-forum.com/t/script-generate-error/185455)

<div class="topic-metadata">

**Author:** [@Azeem\_S](https://www.ruby-forum.com/u/Azeem_S)\
**Replies:** 1\
**Last updated:** [March 20, 2010, 12:18pm UTC](https://www.ruby-forum.com/t/script-generate-error/185455 "2010-03-20T12:18:54Z")

</div>

Hello, I am trying to get my development environment going, and am stuck on the script/generate command which produces this error: undefined method \`index’ for #\<Enumerator: “Rails Info:”:each\_line\> I’m in the correct…

---

## [Undefined method \`name' for "41":String](https://www.ruby-forum.com/t/undefined-method-name-for-41-string/185447)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 5\
**Last updated:** [March 20, 2010, 11:11am UTC](https://www.ruby-forum.com/t/undefined-method-name-for-41-string/185447 "2010-03-20T11:11:00Z")

</div>

plz see this http://pastie.org/878267 reply if u find any error or suggestion… plz its urgent Regards, Shyam +91-9716-18-9650

---

## [Any help on SMS and payment gateway in India](https://www.ruby-forum.com/t/any-help-on-sms-and-payment-gateway-in-india/124414)

<div class="topic-metadata">

**Author:** [@atulxxx](https://www.ruby-forum.com/u/atulxxx)\
**Replies:** 4\
**Last updated:** [March 20, 2010, 10:10am UTC](https://www.ruby-forum.com/t/any-help-on-sms-and-payment-gateway-in-india/124414 "2010-03-20T10:10:44Z")

</div>

Hi, I am developing a ROR application in India, wonder if anyone can suggest good MS and payment gateways + any help on how to integrate them in my application. Also, where do you host a ROR site in India ? Thanks a…

---

## [How to disable the back functionality of the browser after we log out](https://www.ruby-forum.com/t/how-to-disable-the-back-functionality-of-the-browser-after-we-log-out/185448)

<div class="topic-metadata">

**Author:** [@mahesh\_s](https://www.ruby-forum.com/u/mahesh_s)\
**Replies:** 0\
**Last updated:** [March 20, 2010, 10:10am UTC](https://www.ruby-forum.com/t/how-to-disable-the-back-functionality-of-the-browser-after-we-log-out/185448 "2010-03-20T10:10:09Z")

</div>

\*hello friends, in my project after logged out when the user hits back button he is redirected to previous page but when i click or any event is occured then page is redirected to login page using before filter, but …

---

## [Envoi de SMS](https://www.ruby-forum.com/t/envoi-de-sms/185439)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [March 20, 2010, 12:35am UTC](https://www.ruby-forum.com/t/envoi-de-sms/185439 "2010-03-20T00:35:04Z")

</div>

Bonjour, Quelqu’un envoie des sms Ã partir de son application? Vous avez des fournisseurs Ã conseiller. Le plus simple c’est d’envoyer Ã partir d’un email puis le fournisseur transforme Ã§a en sms. Niveau tarif Ã§…

---

## [How can I consume SOAP Web Service?](https://www.ruby-forum.com/t/how-can-i-consume-soap-web-service/185431)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 3\
**Last updated:** [March 19, 2010, 10:17pm UTC](https://www.ruby-forum.com/t/how-can-i-consume-soap-web-service/185431 "2010-03-19T22:17:21Z")

</div>

Please, I need to know the way to consume SOAP Web Service. I’ve seen some examples but I don’t understand how I can do it. From the client side, I need to save the information into database. Please, somebody answer. …

---

## [How to save rails generated pages to a file on the server](https://www.ruby-forum.com/t/how-to-save-rails-generated-pages-to-a-file-on-the-server/185429)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 6\
**Last updated:** [March 19, 2010, 10:16pm UTC](https://www.ruby-forum.com/t/how-to-save-rails-generated-pages-to-a-file-on-the-server/185429 "2010-03-19T22:16:50Z")

</div>

My show view of a data form is finished and now I want to give a possibility to download this view as a pdf file. I would like to use HTMLDOC to convert the html text to pdf. My idea: save the html text to a temporary…

---

## [Convert app to production](https://www.ruby-forum.com/t/convert-app-to-production/185430)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 1\
**Last updated:** [March 19, 2010, 10:15pm UTC](https://www.ruby-forum.com/t/convert-app-to-production/185430 "2010-03-19T22:15:31Z")

</div>

Hi, How to change rails 2.3.5 app to production? I couldn’t find ENV\[“RAILS\_ENV”\] under config/environment.rb Thanks

---

## [Getting data from a through table](https://www.ruby-forum.com/t/getting-data-from-a-through-table/185389)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 2\
**Last updated:** [March 19, 2010, 9:24pm UTC](https://www.ruby-forum.com/t/getting-data-from-a-through-table/185389 "2010-03-19T21:24:08Z")

</div>

im using has\_many through and the through table has some data i want but i cant seem to access it using straight rails class AttributeObjects \< ActiveRecord::Base belongs\_to :attributes belongs\_to :objects end cla…

---

## [Rails development processes running very slow](https://www.ruby-forum.com/t/rails-development-processes-running-very-slow/184714)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 5\
**Last updated:** [March 19, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/rails-development-processes-running-very-slow/184714 "2010-03-19T19:45:47Z")

</div>

This is a problem I know other people have been having. I’m on Rails 2.3.5 on a dual core 2.1Ghz Macbook Pro 2.1 with 3Gb of ram and 800Mb+ inactive memory. Things should be fast. Sometimes things run slowly, but n…

---

## [Regarding template installation and working](https://www.ruby-forum.com/t/regarding-template-installation-and-working/185428)

<div class="topic-metadata">

**Author:** [@Kamalesh\_Kumar](https://www.ruby-forum.com/u/Kamalesh_Kumar)\
**Replies:** 0\
**Last updated:** [March 19, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/regarding-template-installation-and-working/185428 "2010-03-19T19:37:35Z")

</div>

Hi All, I have recently started working on Ruby on Rails and I am amazed with the features it gives. I want to know how are templates installed on Rails for web applications that we develop and also where are the tem…

---

## [Deprecations](https://www.ruby-forum.com/t/deprecations/184828)

<div class="topic-metadata">

**Author:** [@bmcolombet](https://www.ruby-forum.com/u/bmcolombet)\
**Replies:** 2\
**Last updated:** [March 19, 2010, 5:23pm UTC](https://www.ruby-forum.com/t/deprecations/184828 "2010-03-19T17:23:33Z")

</div>

Hi all, Is there a way to have a list of all deprecated methods or classes in each new versions of Rails? I know that a warning is logged sometimes, but I would like a proper list to analyze the deprecated parts of my …

---

## [Problem about "each" in rails](https://www.ruby-forum.com/t/problem-about-each-in-rails/185356)

<div class="topic-metadata">

**Author:** [@pengzhang](https://www.ruby-forum.com/u/pengzhang)\
**Replies:** 6\
**Last updated:** [March 19, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/problem-about-each-in-rails/185356 "2010-03-19T16:27:04Z")

</div>

CODE1: \<% @posts.each do |p|%\> \<%=h p.name %\> \<% end %\> this will show the name string like “Tom” in the web page. CODE2: \<%=h @posts.each {|p| p.name} %\> why this code return serial strings like #Post:0x3a893e8 ? …

---

## [PAM Authentication](https://www.ruby-forum.com/t/pam-authentication/185362)

<div class="topic-metadata">

**Author:** [@evaldo](https://www.ruby-forum.com/u/evaldo)\
**Replies:** 1\
**Last updated:** [March 19, 2010, 3:55pm UTC](https://www.ruby-forum.com/t/pam-authentication/185362 "2010-03-19T15:55:42Z")

</div>

Hello everyone! I’m trying to use PAM in my application and found the gem of Authlogic and rpam. I could not install either the lack of information. Someone has managed to do it? Google’s everywhere and found nothing.…

---

## [Undefined method error despite the fact it doesn't exist](https://www.ruby-forum.com/t/undefined-method-error-despite-the-fact-it-doesnt-exist/185376)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 5\
**Last updated:** [March 19, 2010, 3:53pm UTC](https://www.ruby-forum.com/t/undefined-method-error-despite-the-fact-it-doesnt-exist/185376 "2010-03-19T15:53:08Z")

</div>

Hey all, I’m getting a strange, unexplainable error. It returns undefined method \`render\_index\_row\_action\_pprove’. I performed a search on my entire application and no such method exists. There is a render\_index\_row\_…

---

## [Modern tagging plugin](https://www.ruby-forum.com/t/modern-tagging-plugin/185421)

<div class="topic-metadata">

**Author:** [@f2andy](https://www.ruby-forum.com/u/f2andy)\
**Replies:** 0\
**Last updated:** [March 19, 2010, 2:53pm UTC](https://www.ruby-forum.com/t/modern-tagging-plugin/185421 "2010-03-19T14:53:39Z")

</div>

What’s the current recommendation for ActiveRecord model tagging gems? Is acts\_at\_taggable still state of the art (I haven’t needed to this for a long time). Cheers, Andy – Andy J. http://andyjeffries.co.uk/ …

---

## [MailChimp API recommendations?](https://www.ruby-forum.com/t/mailchimp-api-recommendations/185344)

<div class="topic-metadata">

**Author:** [@Hassan\_S](https://www.ruby-forum.com/u/Hassan_S)\
**Replies:** 1\
**Last updated:** [March 19, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/mailchimp-api-recommendations/185344 "2010-03-19T14:37:51Z")

</div>

This page - http://www.mailchimp.com/api/downloads/ - lists five gems/plugins for interacting with the MailChimp service, and for all I know there are others. Anyone have a personal recommendation? Based on any of sta…

---

## [Calling a method from a different class's view](https://www.ruby-forum.com/t/calling-a-method-from-a-different-classs-view/185374)

<div class="topic-metadata">

**Author:** [@stu](https://www.ruby-forum.com/u/stu)\
**Replies:** 2\
**Last updated:** [March 19, 2010, 2:28pm UTC](https://www.ruby-forum.com/t/calling-a-method-from-a-different-classs-view/185374 "2010-03-19T14:28:28Z")

</div>

Hi all, I have two classes: a player class and a game class. Each game has two player IDs. I would like the game show view to be able to display each player’s full name via a method, as follows: \<%=h Player.get\_playe…

---

## [Recognize path inside a helper](https://www.ruby-forum.com/t/recognize-path-inside-a-helper/185416)

<div class="topic-metadata">

**Author:** [@anler](https://www.ruby-forum.com/u/anler)\
**Replies:** 0\
**Last updated:** [March 19, 2010, 2:02pm UTC](https://www.ruby-forum.com/t/recognize-path-inside-a-helper/185416 "2010-03-19T14:02:43Z")

</div>

Hi Folks, I need to get a hash of params from an url path inside a helper. The way I’ve been doing this was through recognize\_path in RouteSet but now throw me an Exception: MethodNotAllowed(I think beacuse the path …

---

## [How to specify relationship between these models](https://www.ruby-forum.com/t/how-to-specify-relationship-between-these-models/185401)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 6\
**Last updated:** [March 19, 2010, 1:44pm UTC](https://www.ruby-forum.com/t/how-to-specify-relationship-between-these-models/185401 "2010-03-19T13:44:23Z")

</div>

Hi I have a user model which I used as authlogic. What I need to implement is I have to add staff also to the system. And I designed tables like users name email phone etc staffs city state user\_id My question…

---

## [Undefined method move\_higher](https://www.ruby-forum.com/t/undefined-method-move-higher/185409)

<div class="topic-metadata">

**Author:** [@rani](https://www.ruby-forum.com/u/rani)\
**Replies:** 2\
**Last updated:** [March 19, 2010, 1:22pm UTC](https://www.ruby-forum.com/t/undefined-method-move-higher/185409 "2010-03-19T13:22:54Z")

</div>

hi i installed acts\_as\_list plugin into my application but i am getting the error when i am trying to access the methods as move\_to\_bottom,move\_higher,move\_lower etc. how can i solve this issue

---

## [Render a Google Chart to a file](https://www.ruby-forum.com/t/render-a-google-chart-to-a-file/185027)

<div class="topic-metadata">

**Author:** [@archfiend997](https://www.ruby-forum.com/u/archfiend997)\
**Replies:** 8\
**Last updated:** [March 19, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/render-a-google-chart-to-a-file/185027 "2010-03-19T13:18:48Z")

</div>

Anyone not familiar with Google Charts, it’s simple, a PNG image is produced by a configured URL. E.g. follow the link: You’ll see a chart that is a PNG image. Okay so I need to sa…

---

## [Plugins questions](https://www.ruby-forum.com/t/plugins-questions/185405)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 6\
**Last updated:** [March 19, 2010, 12:03pm UTC](https://www.ruby-forum.com/t/plugins-questions/185405 "2010-03-19T12:03:17Z")

</div>

Hi, I want to create a ruby on rails application that has user login and user role. What is a good plugin to use? Thanks for your response in advance. Yudi S.

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

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