# Rails

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

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

---

## [Trouble with edge rails](https://www.ruby-forum.com/t/trouble-with-edge-rails/134579)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [July 29, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/trouble-with-edge-rails/134579 "2008-07-29T14:52:06Z")

</div>

I just joined the list, I’m sure this has been asked before. I just updated to the latest edge rails and am having all kinds of problems with engines. Specifically around setting view\_paths. Rails moved all of that to…

---

## [Installing ruby gems](https://www.ruby-forum.com/t/installing-ruby-gems/144411)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/installing-ruby-gems/144411 "2008-07-29T13:13:11Z")

</div>

hi, I have installed ruby gems sucessfully in ubuntu 7.04 in the command line if check the version i am getting the following error gem -v /usr/bin/gem:8:in \`require’: no such file to load – rubygems (LoadError) f…

---

## [Value check of returned symbol](https://www.ruby-forum.com/t/value-check-of-returned-symbol/144404)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/value-check-of-returned-symbol/144404 "2008-07-29T12:39:55Z")

</div>

Hej there how do I check the returned symbols of my create action for a specific value? As i can easily use all the validates\_\* functions, I wonder how I can check for example that my :name == “ruby” (apparently doesn…

---

## [502 Proxy Error - mongrel\_rails, apache, cap 2.0](https://www.ruby-forum.com/t/502-proxy-error-mongrel-rails-apache-cap-2-0/144064)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 9\
**Last updated:** [July 29, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/502-proxy-error-mongrel-rails-apache-cap-2-0/144064 "2008-07-29T12:39:55Z")

</div>

I’ve been having problems with mongrel for several weeks now, but usually I’m able to resolve the problem by deleting the PID files, restarting mongrel, and/or redeploying. But this time, I’m not able to resolve the …

---

## [Select in list.rhtml](https://www.ruby-forum.com/t/select-in-list-rhtml/144027)

<div class="topic-metadata">

**Author:** [@marco](https://www.ruby-forum.com/u/marco)\
**Replies:** 5\
**Last updated:** [July 29, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/select-in-list-rhtml/144027 "2008-07-29T12:39:55Z")

</div>

i am new to ruby on rails, and this might be a simple one but i have no idea what to do. i need to put a select (\_tag or whatever) into a list.rhtml and get the selected value from this. Putting the select to the view…

---

## [Rails 2.1 REST and custom routing - newbie question](https://www.ruby-forum.com/t/rails-2-1-rest-and-custom-routing-newbie-question/144408)

<div class="topic-metadata">

**Author:** [@Bartosz\_Wais](https://www.ruby-forum.com/u/Bartosz_Wais)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/rails-2-1-rest-and-custom-routing-newbie-question/144408 "2008-07-29T12:39:55Z")

</div>

Hi everybody, I am working on my first rest RoR app, and in short: i have resource e.g (users) instead of calling it using www.example.com/users/id my aim is to call it \*www.example.com/id \* id is pointing in my c…

---

## [Value check of returned symbol](https://www.ruby-forum.com/t/value-check-of-returned-symbol/144403)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/value-check-of-returned-symbol/144403 "2008-07-29T12:39:19Z")

</div>

Hej there how and where do I check returned symbols for their values? Let’s say I’ve a date field which also could hold “Today” or “Tomorrow” and should thus be transferred into the appropriate date… And how can i ex…

---

## [Appending to a restful resource a custom format](https://www.ruby-forum.com/t/appending-to-a-restful-resource-a-custom-format/144397)

<div class="topic-metadata">

**Author:** [@gabriel83](https://www.ruby-forum.com/u/gabriel83)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 11:41am UTC](https://www.ruby-forum.com/t/appending-to-a-restful-resource-a-custom-format/144397 "2008-07-29T11:41:29Z")

</div>

Hi everyone, I would like to add the format and a custom field to all my restful resources, without touching my application (I don’t want to change all url\_path to format\_url\_path to make things clear). For being mor…

---

## [Passing strings from model to a form, to edit the information](https://www.ruby-forum.com/t/passing-strings-from-model-to-a-form-to-edit-the-information/144374)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 1\
**Last updated:** [July 29, 2008, 11:03am UTC](https://www.ruby-forum.com/t/passing-strings-from-model-to-a-form-to-edit-the-information/144374 "2008-07-29T11:03:13Z")

</div>

Yeah, I’m trying to develop a “User Profile” and want to show some forms with the content stored in database. I search in documentation but i don’t find anything useful. I try at controller: @u = User.find(:last) a…

---

## [Drag and drop \> ajax?](https://www.ruby-forum.com/t/drag-and-drop-ajax/144386)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 1\
**Last updated:** [July 29, 2008, 10:59am UTC](https://www.ruby-forum.com/t/drag-and-drop-ajax/144386 "2008-07-29T10:59:07Z")

</div>

Hi, I want to develop a interface like Igoogle, where visitors can organize the elements on there webpage. Wich helper must i use to realize this…is this act\_as\_list? or another solution? Grtz…remco

---

## [Appen some script while uploading html file using ruby on ra](https://www.ruby-forum.com/t/appen-some-script-while-uploading-html-file-using-ruby-on-ra/144389)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 10:08am UTC](https://www.ruby-forum.com/t/appen-some-script-while-uploading-html-file-using-ruby-on-ra/144389 "2008-07-29T10:08:01Z")

</div>

i am uploading a html file while uploading i want to put some data into that file in Ruby on rails so pls help on this

---

## [InvalidAuthenticityToken with Lightview](https://www.ruby-forum.com/t/invalidauthenticitytoken-with-lightview/144364)

<div class="topic-metadata">

**Author:** [@elliotchyba](https://www.ruby-forum.com/u/elliotchyba)\
**Replies:** 1\
**Last updated:** [July 29, 2008, 9:36am UTC](https://www.ruby-forum.com/t/invalidauthenticitytoken-with-lightview/144364 "2008-07-29T09:36:58Z")

</div>

Hi, I’m integrating Lightview, http://www.nickstakenburg.com/projects/lightview/, into an application. It’s more or less a content overlay similar to a light box, which then calls the content either through an IFRAME…

---

## [Facebook notifications and invitations](https://www.ruby-forum.com/t/facebook-notifications-and-invitations/144383)

<div class="topic-metadata">

**Author:** [@gadys](https://www.ruby-forum.com/u/gadys)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 8:26am UTC](https://www.ruby-forum.com/t/facebook-notifications-and-invitations/144383 "2008-07-29T08:26:03Z")

</div>

Hi does anyone know a good resource or tutorial for facebook integration with rails ? I’m using facebooker but i am looking for helpers for FBML and the presentation layer. any specific website for rails facebook de…

---

## [Custom url's and routing](https://www.ruby-forum.com/t/custom-urls-and-routing/144280)

<div class="topic-metadata">

**Author:** [@nahabed](https://www.ruby-forum.com/u/nahabed)\
**Replies:** 2\
**Last updated:** [July 29, 2008, 5:09am UTC](https://www.ruby-forum.com/t/custom-urls-and-routing/144280 "2008-07-29T05:09:00Z")

</div>

I’m working on a Rails 2.0 app… we’re getting read to use AdWords to drive some traffic… we plan to use a custom URL per ad (to allow us to track conversions on Google Analytics). The site is an ecommerce site. The pl…

---

## [Rails or Tomcat - which one to be used for backgorund task?](https://www.ruby-forum.com/t/rails-or-tomcat-which-one-to-be-used-for-backgorund-task/144363)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 1\
**Last updated:** [July 29, 2008, 3:08am UTC](https://www.ruby-forum.com/t/rails-or-tomcat-which-one-to-be-used-for-backgorund-task/144363 "2008-07-29T03:08:34Z")

</div>

Hi, I need advice on a decision that I have to make to decide whether I should do background task in Rails or in Tomcat. What I need to do is that a user of web app will create nnumber of text messages which need to…

---

## [Custom validation](https://www.ruby-forum.com/t/custom-validation/144278)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 2\
**Last updated:** [July 29, 2008, 1:25am UTC](https://www.ruby-forum.com/t/custom-validation/144278 "2008-07-29T01:25:05Z")

</div>

i’m trying to use a custom validation but for some reason it’s seems like it is just getting ignored. in my model: before\_save :validate def validate total\_rank = 0 for compound\_material in self.compound\_materials …

---

## [Elementary "OR" question](https://www.ruby-forum.com/t/elementary-or-question/144357)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 4\
**Last updated:** [July 29, 2008, 12:30am UTC](https://www.ruby-forum.com/t/elementary-or-question/144357 "2008-07-29T00:30:07Z")

</div>

I know this is super basic, but I need some help. In my view, which displays a form, if a field is nil or if there are errors when the form is submitted, display “A”, otherwise, display “B”. I can’t figure out how to …

---

## [How do I run a Ruby script within the Rails framework (like I was in ./script/console)?](https://www.ruby-forum.com/t/how-do-i-run-a-ruby-script-within-the-rails-framework-like-i-was-in-script-console/144351)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [July 29, 2008, 12:19am UTC](https://www.ruby-forum.com/t/how-do-i-run-a-ruby-script-within-the-rails-framework-like-i-was-in-script-console/144351 "2008-07-29T00:19:35Z")

</div>

Hi, Anyone know how do I run a Ruby script within the Rails framework (like I was in ./script/console)??? That is, I could do the same things I can do in the Rails console (e.g. ./script/console), however I can writ…

---

## [Network SSH and ftp](https://www.ruby-forum.com/t/network-ssh-and-ftp/144359)

<div class="topic-metadata">

**Author:** [@adler1](https://www.ruby-forum.com/u/adler1)\
**Replies:** 0\
**Last updated:** [July 29, 2008, 12:08am UTC](https://www.ruby-forum.com/t/network-ssh-and-ftp/144359 "2008-07-29T00:08:05Z")

</div>

Dear all, I am a new ruby programer and i would your help to apply the following in ruby. In order to download my files from my ftp server (It doesnt support rsync) i need to do the following: ssh -nNTf -l $router\_u…

---

## [Frames in Rails](https://www.ruby-forum.com/t/frames-in-rails/144358)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 3\
**Last updated:** [July 29, 2008, 12:07am UTC](https://www.ruby-forum.com/t/frames-in-rails/144358 "2008-07-29T00:07:27Z")

</div>

Hi there I’m relatively new to rails (and web development). I want to insert a video into my site which can keep playing even when the user is browsing between pages. Should i do this with Frames or iFrames? I tried…

---

## [Getting error Unknown method 'new' for a new model instance](https://www.ruby-forum.com/t/getting-error-unknown-method-new-for-a-new-model-instance/144331)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 28, 2008, 11:50pm UTC](https://www.ruby-forum.com/t/getting-error-unknown-method-new-for-a-new-model-instance/144331 "2008-07-28T23:50:55Z")

</div>

I have a model called Test. In the controller I have @circuit = Test.new. Any ideas why rails is complaining about the ‘new’ method??

---

## [Model -\> with\_scope -\> session access?](https://www.ruby-forum.com/t/model-with-scope-session-access/144269)

<div class="topic-metadata">

**Author:** [@LpLpLp](https://www.ruby-forum.com/u/LpLpLp)\
**Replies:** 8\
**Last updated:** [July 28, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/model-with-scope-session-access/144269 "2008-07-28T23:44:28Z")

</div>

Hello, I try to override the default find method for some of my models: I want it to find only the users, which belong to a specific customer. Therefore I set an application-wide instance variable before rendering an…

---

## [Rails app acting as gateway + wrapper?](https://www.ruby-forum.com/t/rails-app-acting-as-gateway-wrapper/197180)

<div class="topic-metadata">

**Author:** [@lazx](https://www.ruby-forum.com/u/lazx)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/rails-app-acting-as-gateway-wrapper/197180 "2008-07-28T23:36:52Z")

</div>

I am currently developing a semi large application and am piecing together various smaller web applications to decrease development time. Some of the smaller applications are running on a tomcat server. The idea is …

---

## [Rails app acting as gateway + wrapper?](https://www.ruby-forum.com/t/rails-app-acting-as-gateway-wrapper/144355)

<div class="topic-metadata">

**Author:** [@lazx](https://www.ruby-forum.com/u/lazx)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/rails-app-acting-as-gateway-wrapper/144355 "2008-07-28T23:25:43Z")

</div>

I am currently developing a semi large application and am piecing together various smaller web applications to decrease development time. Some of the smaller applications are running on a tomcat server. The idea is …

---

## [Rails app acting as gateway + wrapper?](https://www.ruby-forum.com/t/rails-app-acting-as-gateway-wrapper/196761)

<div class="topic-metadata">

**Author:** [@lazx](https://www.ruby-forum.com/u/lazx)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/rails-app-acting-as-gateway-wrapper/196761 "2008-07-28T23:25:07Z")

</div>

I am currently developing a semi large application and am piecing together various smaller web applications to decrease development time. Some of the smaller applications are running on a tomcat server. The idea is …

---

## [Editing timestamps?](https://www.ruby-forum.com/t/editing-timestamps/144317)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 1\
**Last updated:** [July 28, 2008, 11:25pm UTC](https://www.ruby-forum.com/t/editing-timestamps/144317 "2008-07-28T23:25:07Z")

</div>

Hi, I’m redeveloping an old site for someone and want to import all their old news archives into my database. They were previously stored as text in the html so I’m having to cut and paste each story, so everything i…

---

## [Using text\_field\_with\_auto\_complete in partials?](https://www.ruby-forum.com/t/using-text-field-with-auto-complete-in-partials/144353)

<div class="topic-metadata">

**Author:** [@mroths](https://www.ruby-forum.com/u/mroths)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/using-text-field-with-auto-complete-in-partials/144353 "2008-07-28T23:15:36Z")

</div>

Anyone know how to use text\_field\_with\_auto\_complete in place of f.text\_field in the partial? Using Ryan B.’ example (#75 Complex Forms Part 3 - RailsCasts): \<%= text\_field\_with\_auto\_complete :task\_attributes, :name, …

---

## [Rubygems Issues](https://www.ruby-forum.com/t/rubygems-issues/144348)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/rubygems-issues/144348 "2008-07-28T22:42:54Z")

</div>

I recently upgraded a server’s rubygems from 0.9.0 to 1.2.0. Upon doing so, one of our apps that uses soap4r thinks all the security certificates it sees are invalid (see Error 1 below). I tried reverting to 0.9.0, bu…

---

## [Remote\_ip always returns 127.0.0.1 (apache)](https://www.ruby-forum.com/t/remote-ip-always-returns-127-0-0-1-apache/144349)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 2\
**Last updated:** [July 28, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/remote-ip-always-returns-127-0-0-1-apache/144349 "2008-07-28T22:35:32Z")

</div>

Hi All I have my webrick server behind apache (all on the same server). The problem I have now is that request.remote\_ip always returns 127.0.0.1. So it gets this IP from apache (I guess). How do I get the true client …

---

## [Rubygems Problem](https://www.ruby-forum.com/t/rubygems-problem/144347)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [July 28, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/rubygems-problem/144347 "2008-07-28T21:56:38Z")

</div>

I’m getting an error while trying to update Rubygems using “gem update –system”: Updating RubyGems… ERROR: While executing gem … (NoMethodError) private method \`specification\_version=’ called for #Gem::Specificatio…

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

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