# Rails

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

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

---

## [Using ERB inside a controller](https://www.ruby-forum.com/t/using-erb-inside-a-controller/135253)

<div class="topic-metadata">

**Author:** [@Col\_W](https://www.ruby-forum.com/u/Col_W)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 12:32pm UTC](https://www.ruby-forum.com/t/using-erb-inside-a-controller/135253 "2008-04-20T12:32:25Z")

</div>

I know it’s not desirable to use ERB inside the controller in theory, but I think I really need and I’m having problems. I am using GMap the Google Map helper and all the coding for the markers (pop-ups) is done insid…

---

## [Mongrel - strange start-up message](https://www.ruby-forum.com/t/mongrel-strange-start-up-message/135258)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 12:17pm UTC](https://www.ruby-forum.com/t/mongrel-strange-start-up-message/135258 "2008-04-20T12:17:42Z")

</div>

I am using pretty much the same RoR set up on Ubuntu 7.10, Fedora Core 5, and Windows with Rails 2.0.2, Ruby 1.8.6 and NetBeans 6.1 Beta. Each machine is using Mongrel. Both the Linux machines start Mongrel with th…

---

## [Can't prepare test database](https://www.ruby-forum.com/t/cant-prepare-test-database/135102)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 2\
**Last updated:** [April 20, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/cant-prepare-test-database/135102 "2008-04-20T12:14:47Z")

</div>

Hi, I got a production server where I’d like to run “rake test” - to check for file permissions etc. - all tests pass on my local machine. On the production server I got production db and empty development and test d…

---

## [My CSS file won't show (even though everything says it should)](https://www.ruby-forum.com/t/my-css-file-wont-show-even-though-everything-says-it-should/135063)

<div class="topic-metadata">

**Author:** [@Mister\_Blood\_R](https://www.ruby-forum.com/u/Mister_Blood_R)\
**Replies:** 4\
**Last updated:** [April 20, 2008, 10:39am UTC](https://www.ruby-forum.com/t/my-css-file-wont-show-even-though-everything-says-it-should/135063 "2008-04-20T10:39:48Z")

</div>

i can’t get my app to use my css file (unless i remove the !DOCTYPE). in development mode with webrick i don’t have this problem, only here in production with mod\_rails: \<VirtualHost \*:80\> ServerName mysite.com Serv…

---

## [\[ANN\] Inferred Routes plugin for Rails 2.0](https://www.ruby-forum.com/t/ann-inferred-routes-plugin-for-rails-2-0/135254)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 9:32am UTC](https://www.ruby-forum.com/t/ann-inferred-routes-plugin-for-rails-2-0/135254 "2008-04-20T09:32:30Z")

</div>

Hi everyone – I’ve updated my Inferred Routes plugin for Rails 2.0. The plugin, which is somewhat experimental, lets you do this: collection\_item\_path(@item) instead of: collection\_item\_path(@item.collection, @item) …

---

## [How to pass input for a function in webservice as XML?](https://www.ruby-forum.com/t/how-to-pass-input-for-a-function-in-webservice-as-xml/196645)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [April 20, 2008, 7:49am UTC](https://www.ruby-forum.com/t/how-to-pass-input-for-a-function-in-webservice-as-xml/196645 "2008-04-20T07:49:38Z")

</div>

Hi All, Suppose i have one function which is defined in web service that is save\_request(int,string,int).So i wanna pass the inputs in this function like XML format. web service also in ROR and i am creating one appl…

---

## [Dream Home](https://www.ruby-forum.com/t/dream-home/135263)

<div class="topic-metadata">

**Author:** [@lz25n](https://www.ruby-forum.com/u/lz25n)\
**Replies:** 0\
**Last updated:** [April 20, 2008, 7:08am UTC](https://www.ruby-forum.com/t/dream-home/135263 "2008-04-20T07:08:05Z")

</div>

Round up the relatives and get ready for new trivia rounds in Family Feud 3. Make Mom and Dad proud as you score points to customize their dream home. One hundred people were surveyed in the latest sequel to give some…

---

## [Question on restful\_authentication](https://www.ruby-forum.com/t/question-on-restful-authentication/135245)

<div class="topic-metadata">

**Author:** [@ldt](https://www.ruby-forum.com/u/ldt)\
**Replies:** 3\
**Last updated:** [April 20, 2008, 1:56am UTC](https://www.ruby-forum.com/t/question-on-restful-authentication/135245 "2008-04-20T01:56:38Z")

</div>

I attempted to run the following command using the restful\_authentication plugin and was wondering if anyone could help shed some light on this. Here’s my problem - ran: script/generate authenticated person session A…

---

## [Rails Mobile App - Video Streaming](https://www.ruby-forum.com/t/rails-mobile-app-video-streaming/135256)

<div class="topic-metadata">

**Author:** [@dicouw](https://www.ruby-forum.com/u/dicouw)\
**Replies:** 0\
**Last updated:** [April 20, 2008, 12:59am UTC](https://www.ruby-forum.com/t/rails-mobile-app-video-streaming/135256 "2008-04-20T00:59:51Z")

</div>

Hi everybody, I was wondering if someone has ever tried to stream videos on a PDA, mobile phone (NOT an iPhone) with windows mobile. Moreover, I don’t want to use Flash to play the video, I just want to click on the …

---

## [Rake abort 'const\_missing' occurs if I have DATE\_FORMATS set in environment.rb?](https://www.ruby-forum.com/t/rake-abort-const-missing-occurs-if-i-have-date-formats-set-in-environment-rb/135250)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [April 19, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/rake-abort-const-missing-occurs-if-i-have-date-formats-set-in-environment-rb/135250 "2008-04-19T22:30:20Z")

</div>

Hi, I get the following error when I add a default DATE\_FORMATS to my environments.rb file? Any suggestions? The entry works fine, it’s just when I go to run “rake db:migrate:reset”. ------------addition to envir…

---

## [Table look-up method advise please](https://www.ruby-forum.com/t/table-look-up-method-advise-please/134992)

<div class="topic-metadata">

**Author:** [@technomancy](https://www.ruby-forum.com/u/technomancy)\
**Replies:** 2\
**Last updated:** [April 19, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/table-look-up-method-advise-please/134992 "2008-04-19T21:43:43Z")

</div>

Hi I am trying to learn rails 2 but really struggling with all this table relationship stuff & restful routes with rails 1 manuals etc! I was wondering if somebody would be kind enough to give me some advice and samp…

---

## [Upgrade to 2.0.2: InvalidAuthenticityToken error on 1st POST](https://www.ruby-forum.com/t/upgrade-to-2-0-2-invalidauthenticitytoken-error-on-1st-post/132398)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 7\
**Last updated:** [April 19, 2008, 9:23pm UTC](https://www.ruby-forum.com/t/upgrade-to-2-0-2-invalidauthenticitytoken-error-on-1st-post/132398 "2008-04-19T21:23:24Z")

</div>

All, I’ve upgraded to 2.0.2, and I can’t get my login screen (the first POST request in the application) to work. When I post this form, I see the “InvalidAuthenticityToken” error. I have protect\_from\_forgery :secre…

---

## [Uploading image(very urgent)](https://www.ruby-forum.com/t/uploading-image-very-urgent/135236)

<div class="topic-metadata">

**Author:** [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Replies:** 4\
**Last updated:** [April 19, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/uploading-image-very-urgent/135236 "2008-04-19T20:37:24Z")

</div>

hi im anas… im new(means im doing my acadamic project in ror)in ror … i have an problem in uploading images(to store in the file system). im using ‘fileutils’ lib… plzzz… any one help me to store images in file syste…

---

## [Is Phusion Passenger (mod\_rails) good for single app servers](https://www.ruby-forum.com/t/is-phusion-passenger-mod-rails-good-for-single-app-servers/134963)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 10\
**Last updated:** [April 19, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/is-phusion-passenger-mod-rails-good-for-single-app-servers/134963 "2008-04-19T19:05:56Z")

</div>

There is a lot of hype over mod\_rails, but from my understanding it is more geared for servers with a number of apps on it. The reason it seems that way is how it frees up the memory if an app is stagnant for an exte…

---

## [Update and update\_attribute woes](https://www.ruby-forum.com/t/update-and-update-attribute-woes/135231)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/update-and-update-attribute-woes/135231 "2008-04-19T18:51:45Z")

</div>

i can not get update to work via controller/server. it works via console ??? this is what i get when i run it Club Load (0.005893) SELECT \* FROM clubs WHERE (clubs.“id” = 3) SQL (0.000570) BEGIN SQL (0.000454) …

---

## [Timestamps in Migrations](https://www.ruby-forum.com/t/timestamps-in-migrations/135240)

<div class="topic-metadata">

**Author:** [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/timestamps-in-migrations/135240 "2008-04-19T18:45:54Z")

</div>

Hi there again :slight\_smile: I’m creating my mysql tables using migrations and I have noticed that the t.timestamps line creates two columns named ‘created\_at’ and ‘updated\_at’ as datetime type but they allow null va…

---

## [Problem with Active Web Service on InstantRails](https://www.ruby-forum.com/t/problem-with-active-web-service-on-instantrails/135235)

<div class="topic-metadata">

**Author:** [@danl](https://www.ruby-forum.com/u/danl)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 6:15pm UTC](https://www.ruby-forum.com/t/problem-with-active-web-service-on-instantrails/135235 "2008-04-19T18:15:21Z")

</div>

Hi, I’m trying to install and use activewebservice on Rails 2.0.2(using instantrails) the gem install activewebservice finished succesfully. walked through the steps listed at: when I try to start mongrel I get the…

---

## [Win32-service-0.6.1 using a Rails Model](https://www.ruby-forum.com/t/win32-service-0-6-1-using-a-rails-model/135242)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 0\
**Last updated:** [April 19, 2008, 6:11pm UTC](https://www.ruby-forum.com/t/win32-service-0-6-1-using-a-rails-model/135242 "2008-04-19T18:11:10Z")

</div>

Windows 2000 SP4 Ruby 1.8.6 Rail 1.2.6 I’m trying to create a Rail application for our internal use to provide a one stop access to services. I’m currently trying to get the Server.status, Service.stop and Service.s…

---

## [Redirection](https://www.ruby-forum.com/t/redirection/135237)

<div class="topic-metadata">

**Author:** [@Marcello\_P](https://www.ruby-forum.com/u/Marcello_P)\
**Replies:** 6\
**Last updated:** [April 19, 2008, 5:59pm UTC](https://www.ruby-forum.com/t/redirection/135237 "2008-04-19T17:59:55Z")

</div>

Hello, I have two domains pointing to my webserver: www.domain1.com and www.domain2.com I need to redirect call that come from domain2 to www.domain2.com/fd/ What is the best or even possible way to do this ? A rewr…

---

## [InvalidAuthenticityToken exception when deleting cookies](https://www.ruby-forum.com/t/invalidauthenticitytoken-exception-when-deleting-cookies/134872)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 4\
**Last updated:** [April 19, 2008, 4:53pm UTC](https://www.ruby-forum.com/t/invalidauthenticitytoken-exception-when-deleting-cookies/134872 "2008-04-19T16:53:19Z")

</div>

Hello, I’ve been testing my project with some manual tests. One of them consists of deleting cookies (“clean personal info” in firefox) just before submit the login form. Then, I get an error. The error message is: A…

---

## [How to clear page caches under public?](https://www.ruby-forum.com/t/how-to-clear-page-caches-under-public/135232)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 0\
**Last updated:** [April 19, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/how-to-clear-page-caches-under-public/135232 "2008-04-19T15:52:06Z")

</div>

Is there any way to clear page caches under public except remove file manually? – My msn spaces: http://flyerhzm.spaces.live.com

---

## [How to find nil object error in the rails application?](https://www.ruby-forum.com/t/how-to-find-nil-object-error-in-the-rails-application/135217)

<div class="topic-metadata">

**Author:** [@gobi](https://www.ruby-forum.com/u/gobi)\
**Replies:** 3\
**Last updated:** [April 19, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/how-to-find-nil-object-error-in-the-rails-application/135217 "2008-04-19T14:54:59Z")

</div>

After I added some plugins to rails my application it begin to give following error. Error during failsafe response: You have a nil object when you didn’t expect it! The error occurred while evaluating nil.symbolize\_…

---

## [Re: Find all items which have these tags](https://www.ruby-forum.com/t/re-find-all-items-which-have-these-tags/135230)

<div class="topic-metadata">

**Author:** [@Tobi\_R](https://www.ruby-forum.com/u/Tobi_R)\
**Replies:** 0\
**Last updated:** [April 19, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/re-find-all-items-which-have-these-tags/135230 "2008-04-19T14:49:07Z")

</div>

Hi Daniel W. wrote: Not sure if this will work, as I’m not very good at SQL anymore… Item.find(:all, :include =\> :tags, :conditions =\> \[ 'tags.name = ? AND tags.name = ? \], ‘Rainproof’, ‘Bowl’ \]) Thanks, but this …

---

## [How to change mode](https://www.ruby-forum.com/t/how-to-change-mode/135142)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 2\
**Last updated:** [April 19, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/how-to-change-mode/135142 "2008-04-19T14:47:57Z")

</div>

hi all, i finished my ror application in development mode.now i want to change the mode to “test” and “production”.how to do it.how to change my application to “test” and “production” modes.

---

## [Instance variable, ajax and partial](https://www.ruby-forum.com/t/instance-variable-ajax-and-partial/135191)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 9\
**Last updated:** [April 19, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/instance-variable-ajax-and-partial/135191 "2008-04-19T13:15:39Z")

</div>

i get an error message 'you might have expexted an instance of Array, error occurred while evaluating nil i have created @selected\_team = Array.new in a previous def that has been called. if i put @selected\_team in t…

---

## [Inexplicable routing problem](https://www.ruby-forum.com/t/inexplicable-routing-problem/135203)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 2\
**Last updated:** [April 19, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/inexplicable-routing-problem/135203 "2008-04-19T12:52:13Z")

</div>

somehow I broke my RESTful edit action and can’t figure out how. map.resources :posts when I open /posts/10/edit the action\_name is ‘edit 10’ rather than ‘edit’ and if I hit reload or try to edit another post, I get …

---

## [Hi there](https://www.ruby-forum.com/t/hi-there/135216)

<div class="topic-metadata">

**Author:** [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Replies:** 6\
**Last updated:** [April 19, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/hi-there/135216 "2008-04-19T12:04:05Z")

</div>

Hi there I subscribed to this mailint list this morning after days looking for the way to do it, so this is my first post. My name is Miquel and I have been coding with ruby for a year and a half (using Qtruby bindin…

---

## [Finding RoR Developers](https://www.ruby-forum.com/t/finding-ror-developers/135205)

<div class="topic-metadata">

**Author:** [@Josh.B](https://www.ruby-forum.com/u/Josh.B)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 11:58am UTC](https://www.ruby-forum.com/t/finding-ror-developers/135205 "2008-04-19T11:58:14Z")

</div>

Hi all, Any suggestions on where to find good RoR developers for between 60 and 100 hours of work? Thanks! Josh

---

## [Timed events across time zones](https://www.ruby-forum.com/t/timed-events-across-time-zones/135223)

<div class="topic-metadata">

**Author:** [@binkly](https://www.ruby-forum.com/u/binkly)\
**Replies:** 1\
**Last updated:** [April 19, 2008, 11:53am UTC](https://www.ruby-forum.com/t/timed-events-across-time-zones/135223 "2008-04-19T11:53:33Z")

</div>

I have an application design question to ask. Say you have a server running in the Pacific time zone, and your app allows users to schedule emails to be sent to them based on their local time zone. So for instance, a…

---

## [Displaying external url's](https://www.ruby-forum.com/t/displaying-external-urls/135209)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 19, 2008, 11:18am UTC](https://www.ruby-forum.com/t/displaying-external-urls/135209 "2008-04-19T11:18:52Z")

</div>

I am a rails beginner and I am having trouble displaying external urls on view. This is what i have in DB for ex: www.rubyonrails.com, if i try to construct the url on the page using link\_to the url formed is - http…

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

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