# Rails

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

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

---

## [Background / delayed jobs with rails 3](https://www.ruby-forum.com/t/background-delayed-jobs-with-rails-3/192884)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 0\
**Last updated:** [August 7, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/background-delayed-jobs-with-rails-3/192884 "2010-08-07T17:26:17Z")

</div>

I am trying (unsuccessfully) to get the delayed\_jobs 2.1.0.pre gem working with Rails 3.0.0.rc. I have also tried installing it as a plugin, with no luck. Can anyone recommend a gem or plugin that does work with Rail…

---

## [iPhone application development via rubyonrails on windows](https://www.ruby-forum.com/t/iphone-application-development-via-rubyonrails-on-windows/192824)

<div class="topic-metadata">

**Author:** [@ashu](https://www.ruby-forum.com/u/ashu)\
**Replies:** 10\
**Last updated:** [August 7, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/iphone-application-development-via-rubyonrails-on-windows/192824 "2010-08-07T17:01:06Z")

</div>

hello everyone , i want to learn iPhone application development via rubyonrails on windows( just for start up ), How it can be possible .if it can be possible or anyone doing .please suggest or lin…

---

## [Rails root directory](https://www.ruby-forum.com/t/rails-root-directory/192877)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [August 7, 2010, 4:12pm UTC](https://www.ruby-forum.com/t/rails-root-directory/192877 "2010-08-07T16:12:54Z")

</div>

When said “Rails root directory”, does that mean the directory the Rails application is stored in? Or, where Rails framework is installed? Thanks.

---

## [Application not pushed to Github and Heroku](https://www.ruby-forum.com/t/application-not-pushed-to-github-and-heroku/192849)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 8\
**Last updated:** [August 7, 2010, 2:50pm UTC](https://www.ruby-forum.com/t/application-not-pushed-to-github-and-heroku/192849 "2010-08-07T14:50:29Z")

</div>

Following this tutorial : http://railstutorial.org/chapters/static-pages#top I created the hello.html file. After that, I have done the following: $ git push $ git push heroku But, I couldn’t see the changes neithe…

---

## [How to get script/runner to write its PID to a file?](https://www.ruby-forum.com/t/how-to-get-script-runner-to-write-its-pid-to-a-file/192874)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 0\
**Last updated:** [August 7, 2010, 2:34pm UTC](https://www.ruby-forum.com/t/how-to-get-script-runner-to-write-its-pid-to-a-file/192874 "2010-08-07T14:34:11Z")

</div>

Hello! I must be missing something obvious (and yet I have tried a lot of things): how can you get script/runner to write its PID to a file (and specify the location)? I could do it manually in the code itself, but …

---

## [Bulksms designed using ruby on rails](https://www.ruby-forum.com/t/bulksms-designed-using-ruby-on-rails/192873)

<div class="topic-metadata">

**Author:** [@indsms](https://www.ruby-forum.com/u/indsms)\
**Replies:** 0\
**Last updated:** [August 7, 2010, 1:58pm UTC](https://www.ruby-forum.com/t/bulksms-designed-using-ruby-on-rails/192873 "2010-08-07T13:58:41Z")

</div>

we designed our webtool for sending bulk sms within india using ruby on rails. Dear All, Greetings from Indsms, We INDSMS being most trusted entity by our customers, are offering BULKSMS at quality routes with Best …

---

## [Paperclip not finding imagemagick on prod, works on dev](https://www.ruby-forum.com/t/paperclip-not-finding-imagemagick-on-prod-works-on-dev/192840)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 4\
**Last updated:** [August 7, 2010, 12:16pm UTC](https://www.ruby-forum.com/t/paperclip-not-finding-imagemagick-on-prod-works-on-dev/192840 "2010-08-07T12:16:35Z")

</div>

Hi, I am using paperclip to attach documents to my models. it works perfectly on my dev machine, but on the server I get a CommandNotFoundError. On my server if I ./script/console I can run imagemagick through syste…

---

## [Use/ignore index as a scope - rails 3](https://www.ruby-forum.com/t/use-ignore-index-as-a-scope-rails-3/192869)

<div class="topic-metadata">

**Author:** [@anse](https://www.ruby-forum.com/u/anse)\
**Replies:** 0\
**Last updated:** [August 7, 2010, 10:53am UTC](https://www.ruby-forum.com/t/use-ignore-index-as-a-scope-rails-3/192869 "2010-08-07T10:53:43Z")

</div>

Whats the preferred way to specify “USE INDEX” or “IGNORE INDEX” in the scope/Arel syntax in rails 3?

---

## [Run tests from IRB?](https://www.ruby-forum.com/t/run-tests-from-irb/192867)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 0\
**Last updated:** [August 7, 2010, 10:38am UTC](https://www.ruby-forum.com/t/run-tests-from-irb/192867 "2010-08-07T10:38:41Z")

</div>

Hello, is it possible to run single test files from the IRB? I’m using Windows and it always takes a very long time until ruby is initialized (about 20 seconds) so I would save quite some time if I could run the test …

---

## [JOB: Software Engineer - API/Backend](https://www.ruby-forum.com/t/job-software-engineer-api-backend/192855)

<div class="topic-metadata">

**Author:** [@megan](https://www.ruby-forum.com/u/megan)\
**Replies:** 0\
**Last updated:** [August 7, 2010, 2:10am UTC](https://www.ruby-forum.com/t/job-software-engineer-api-backend/192855 "2010-08-07T02:10:19Z")

</div>

VerticalResponse, Inc is a leading provider of self-service email and direct mail solutions and is seeking a Software Engineer - API/ Backend. We’ve been recognized as one of the top 100 best places to work in the bay…

---

## [Object/Record foreign key IDs set to zero](https://www.ruby-forum.com/t/object-record-foreign-key-ids-set-to-zero/192843)

<div class="topic-metadata">

**Author:** [@iaindooley](https://www.ruby-forum.com/u/iaindooley)\
**Replies:** 4\
**Last updated:** [August 6, 2010, 10:50pm UTC](https://www.ruby-forum.com/t/object-record-foreign-key-ids-set-to-zero/192843 "2010-08-06T22:50:00Z")

</div>

Hello, Hope no one minds me just jumping in here with a question. I’m completely new to Ruby on Rails. I’ve been reading “Simply Rails 2”, and following their examples. I reached a point where the unit tests were une…

---

## [Restful URLs fail to generate when id is not numeric](https://www.ruby-forum.com/t/restful-urls-fail-to-generate-when-id-is-not-numeric/192837)

<div class="topic-metadata">

**Author:** [@techy\_bolek](https://www.ruby-forum.com/u/techy_bolek)\
**Replies:** 4\
**Last updated:** [August 6, 2010, 9:52pm UTC](https://www.ruby-forum.com/t/restful-urls-fail-to-generate-when-id-is-not-numeric/192837 "2010-08-06T21:52:45Z")

</div>

I’m trying to work with an existing Oracle schema which of course does not follow the Rails conventions for table/column names or primary key types. I used Scaffold to get everything going. I got the table name and th…

---

## [\[newbie\] when authenticating a resource, do i need to cover PUT, DELETE, POST actions?](https://www.ruby-forum.com/t/newbie-when-authenticating-a-resource-do-i-need-to-cover-put-delete-post-actions/192847)

<div class="topic-metadata">

**Author:** [@Lille](https://www.ruby-forum.com/u/Lille)\
**Replies:** 1\
**Last updated:** [August 6, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/newbie-when-authenticating-a-resource-do-i-need-to-cover-put-delete-post-actions/192847 "2010-08-06T21:46:56Z")

</div>

Hi, I’m using authentication with a :before\_filter for controller actions I want to restrict. I see that I’ll want to authenticate GET request actions, but what about PUT, DELETE, POST requests? Can anyone ‘get’ to t…

---

## [Complete URL in the email body](https://www.ruby-forum.com/t/complete-url-in-the-email-body/192844)

<div class="topic-metadata">

**Author:** [@ahtasham82](https://www.ruby-forum.com/u/ahtasham82)\
**Replies:** 1\
**Last updated:** [August 6, 2010, 9:41pm UTC](https://www.ruby-forum.com/t/complete-url-in-the-email-body/192844 "2010-08-06T21:41:40Z")

</div>

Hi First of all, I am very very new with Ruby/Rails…I am working on maintenance of a project with a team. I created some tracking code for an email…created a new tracking controller with script/generate…now all is fi…

---

## [Rails3 engine questions](https://www.ruby-forum.com/t/rails3-engine-questions/192848)

<div class="topic-metadata">

**Author:** [@corin](https://www.ruby-forum.com/u/corin)\
**Replies:** 0\
**Last updated:** [August 6, 2010, 8:51pm UTC](https://www.ruby-forum.com/t/rails3-engine-questions/192848 "2010-08-06T20:51:54Z")

</div>

Hi! I’m using rails3 (rc and/or master) together with a rails engine. The main app should use the models, controllers etc. of the engine and so far this works fine. But currently only the plugins & view helpers of th…

---

## [Rails3 view\_paths](https://www.ruby-forum.com/t/rails3-view-paths/192845)

<div class="topic-metadata">

**Author:** [@Andrew\_Romanov](https://www.ruby-forum.com/u/Andrew_Romanov)\
**Replies:** 1\
**Last updated:** [August 6, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/rails3-view-paths/192845 "2010-08-06T20:47:48Z")

</div>

Hello, I just want to check in the code if some template is present in views or not. In rails 2.3 I did this with following code - view\_paths.find\_template(template\_path, default\_template\_format). But in rails3 it doe…

---

## [How to ? Rails 3 ActiveRecord eager loading and AREL](https://www.ruby-forum.com/t/how-to-rails-3-activerecord-eager-loading-and-arel/192793)

<div class="topic-metadata">

**Author:** [@m-ryan](https://www.ruby-forum.com/u/m-ryan)\
**Replies:** 3\
**Last updated:** [August 6, 2010, 8:40pm UTC](https://www.ruby-forum.com/t/how-to-rails-3-activerecord-eager-loading-and-arel/192793 "2010-08-06T20:40:46Z")

</div>

Hello everyone, I would like to eager load scoped records to avoid queries executed in a loop (huge performance impact). The “scoped” part is what is giving me a hard time. I’m using Rails3 RC. Does anyone have any …

---

## [RESTful routes and verify :method](https://www.ruby-forum.com/t/restful-routes-and-verify-method/192841)

<div class="topic-metadata">

**Author:** [@Grynszpan](https://www.ruby-forum.com/u/Grynszpan)\
**Replies:** 1\
**Last updated:** [August 6, 2010, 8:31pm UTC](https://www.ruby-forum.com/t/restful-routes-and-verify-method/192841 "2010-08-06T20:31:59Z")

</div>

If my application is using RESTful routing, does using “verify :method” in controllers become redundant?

---

## [Missing translation for activerecord error: taken (uniqueness)](https://www.ruby-forum.com/t/missing-translation-for-activerecord-error-taken-uniqueness/192832)

<div class="topic-metadata">

**Author:** [@QuBiT](https://www.ruby-forum.com/u/QuBiT)\
**Replies:** 1\
**Last updated:** [August 6, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/missing-translation-for-activerecord-error-taken-uniqueness/192832 "2010-08-06T18:58:54Z")

</div>

Hi! I am using Rails3.0.0.rc and get an error which do not occur on Rails2.3.5 In my model I have: validates :title, :presence =\> true, :uniqueness =\> true when I start up the console and enter: x=Blog.new x.valid…

---

## [How to print from ruby?](https://www.ruby-forum.com/t/how-to-print-from-ruby/192819)

<div class="topic-metadata">

**Author:** [@sumantacaptain](https://www.ruby-forum.com/u/sumantacaptain)\
**Replies:** 6\
**Last updated:** [August 6, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/how-to-print-from-ruby/192819 "2010-08-06T18:06:19Z")

</div>

Hi, I am generating some pdf through a for loop. now i want to print those pdf file through program. Any help/suggestion will be appreciated. Thanks in advance.

---

## [Rendering view via jQuery](https://www.ruby-forum.com/t/rendering-view-via-jquery/192803)

<div class="topic-metadata">

**Author:** [@Trish](https://www.ruby-forum.com/u/Trish)\
**Replies:** 12\
**Last updated:** [August 6, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/rendering-view-via-jquery/192803 "2010-08-06T17:26:59Z")

</div>

Okay, so I am very new to this jQuery stuff, and it seems like I’m just going round and round on this… so I’m hoping someone can help. I have a table that will have a image on each row that when click, it adds a row w…

---

## [Cancelling "cancel account"](https://www.ruby-forum.com/t/cancelling-cancel-account/192789)

<div class="topic-metadata">

**Author:** [@maul](https://www.ruby-forum.com/u/maul)\
**Replies:** 5\
**Last updated:** [August 6, 2010, 4:58pm UTC](https://www.ruby-forum.com/t/cancelling-cancel-account/192789 "2010-08-06T16:58:18Z")

</div>

Hi, How does cancel account work? Does it delete from database or it makes its status disable? How can I disable the cancel account property of devise? Thanks

---

## [How to write and call helpers from server/console?](https://www.ruby-forum.com/t/how-to-write-and-call-helpers-from-server-console/192827)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 3\
**Last updated:** [August 6, 2010, 4:36pm UTC](https://www.ruby-forum.com/t/how-to-write-and-call-helpers-from-server-console/192827 "2010-08-06T16:36:52Z")

</div>

I need a helper function to read cvs data into my database. I do not need this function later in the web application. My idea was to write a function inside a controller or AcriveRecord class. But I dont get it called…

---

## [Persistent error - wrong number of arguments (1 for 0)](https://www.ruby-forum.com/t/persistent-error-wrong-number-of-arguments-1-for-0/192740)

<div class="topic-metadata">

**Author:** [@sweb](https://www.ruby-forum.com/u/sweb)\
**Replies:** 15\
**Last updated:** [August 6, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/persistent-error-wrong-number-of-arguments-1-for-0/192740 "2010-08-06T16:01:10Z")

</div>

Hello all, I’m a bit of a Nooby on Rails (is that a new joke?) as well as a Ruby Nooby and I’ve been trying all day to get to the bottom of an error. I promise I have tried everything but I’ve started going round in …

---

## [Rails setup process (from HTTP request to root router loaded)](https://www.ruby-forum.com/t/rails-setup-process-from-http-request-to-root-router-loaded/192816)

<div class="topic-metadata">

**Author:** [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Replies:** 1\
**Last updated:** [August 6, 2010, 3:52pm UTC](https://www.ruby-forum.com/t/rails-setup-process-from-http-request-to-root-router-loaded/192816 "2010-08-06T15:52:11Z")

</div>

Hi all I’m interested in learning more about what happens within rails (or the web server) from when an HTTP request is made, to the point where its served. I know config/router.rb is involved somehow, and I imagin…

---

## [RoR and Facebook Apps](https://www.ruby-forum.com/t/ror-and-facebook-apps/192829)

<div class="topic-metadata">

**Author:** [@noloman](https://www.ruby-forum.com/u/noloman)\
**Replies:** 0\
**Last updated:** [August 6, 2010, 3:47pm UTC](https://www.ruby-forum.com/t/ror-and-facebook-apps/192829 "2010-08-06T15:47:41Z")

</div>

Hey everybody, I am trying to code a small application in FB in order to learn how to do it with RoR, but I run into the following problem once I already can connect to my application: Swapping facebooker config: ‘d1…

---

## [Smart way to add comments possibility on a model base to an app?](https://www.ruby-forum.com/t/smart-way-to-add-comments-possibility-on-a-model-base-to-an-app/192823)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 1\
**Last updated:** [August 6, 2010, 3:41pm UTC](https://www.ruby-forum.com/t/smart-way-to-add-comments-possibility-on-a-model-base-to-an-app/192823 "2010-08-06T15:41:39Z")

</div>

What would be a smart way to Add a comment form and lists comments on a per model base? Im building a social networking site and would like to have comments on certain contents. I could add a comment form for every mo…

---

## [(Jobs) Need SEM/PPC Consultant for Gurgaon Location](https://www.ruby-forum.com/t/jobs-need-sem-ppc-consultant-for-gurgaon-location/192828)

<div class="topic-metadata">

**Author:** [@Arudreya\_Thapliyal](https://www.ruby-forum.com/u/Arudreya_Thapliyal)\
**Replies:** 0\
**Last updated:** [August 6, 2010, 2:05pm UTC](https://www.ruby-forum.com/t/jobs-need-sem-ppc-consultant-for-gurgaon-location/192828 "2010-08-06T14:05:36Z")

</div>

Experience: 3-6 Years Location: Gurgaon, India Compensation â€“ Max 6 Lacs Education: Graduate in Statistics/Math/Economics stream. A post graduate degree will be a definite advantage. Industry Type: IT Product Fu…

---

## [Git Installation In Windows XP](https://www.ruby-forum.com/t/git-installation-in-windows-xp/192820)

<div class="topic-metadata">

**Author:** [@sumantacaptain](https://www.ruby-forum.com/u/sumantacaptain)\
**Replies:** 5\
**Last updated:** [August 6, 2010, 1:05pm UTC](https://www.ruby-forum.com/t/git-installation-in-windows-xp/192820 "2010-08-06T13:05:52Z")

</div>

Hi, I am trying to install GIT on windows XP, but after installing Git-1.7.0.2-preview20100309.exe, could not able to establish the connection. I followed GitHub Support the link for setup. But unfortunately I got t…

---

## [FOR or EACH?](https://www.ruby-forum.com/t/for-or-each/192727)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 11\
**Last updated:** [August 6, 2010, 12:10pm UTC](https://www.ruby-forum.com/t/for-or-each/192727 "2010-08-06T12:10:24Z")

</div>

When looping through arrays. What’d you argue to be good (or best) practice? \<% for something in @lots\_of\_things %\> \<%= something.name %\> \<% end %\> \<% @lots\_of\_things.each do |something| %\> \<%= something.name %\> \<%…

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

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