# Rails

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

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

---

## [In\_place\_editor\_field - "No Route Matches" Error](https://www.ruby-forum.com/t/in-place-editor-field-no-route-matches-error/117223)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 8:53am UTC](https://www.ruby-forum.com/t/in-place-editor-field-no-route-matches-error/117223 "2007-10-16T08:53:06Z")

</div>

I’m trying to create an edit in place profile update page, using in\_place\_editor\_field. Every time I try, I keep getting this error No route matches {:action=\>“set\_user\_first\_name”, :id=\>“1”} Would any know what the …

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/117278)

<div class="topic-metadata">

**Author:** [@joshi\_v](https://www.ruby-forum.com/u/joshi_v)\
**Replies:** 3\
**Last updated:** [October 16, 2007, 8:28am UTC](https://www.ruby-forum.com/t/nomethoderror/117278 "2007-10-16T08:28:33Z")

</div>

Hi to all!! I am new to ruby. I am trying to write a program to fetch the data from Database and written the data using pagination. I could get the data from DB. but pagination is not working. When i see the log file …

---

## [Rails and GWT (HTTP request setHeader problems)](https://www.ruby-forum.com/t/rails-and-gwt-http-request-setheader-problems/117355)

<div class="topic-metadata">

**Author:** [@fldrog](https://www.ruby-forum.com/u/fldrog)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 8:20am UTC](https://www.ruby-forum.com/t/rails-and-gwt-http-request-setheader-problems/117355 "2007-10-16T08:20:02Z")

</div>

Hello I have a server in rails and the client side in GWT…I have problem with setting the header of a request in GWT i do something like this: RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, “http://l…

---

## [How to get all index information on Acts\_As\_Ferret](https://www.ruby-forum.com/t/how-to-get-all-index-information-on-acts-as-ferret/117331)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 6:08am UTC](https://www.ruby-forum.com/t/how-to-get-all-index-information-on-acts-as-ferret/117331 "2007-10-16T06:08:25Z")

</div>

how to get all index information on Acts\_As\_Ferret, like @index=User.find(:all) on rails. I looked around ActsAsFerret::ClassMethods, and didn’t find it…please help me! Thanks!

---

## [Super-Intelligent Ruby on Rails Developer - US Company - Imm](https://www.ruby-forum.com/t/super-intelligent-ruby-on-rails-developer-us-company-imm/117345)

<div class="topic-metadata">

**Author:** [@avity](https://www.ruby-forum.com/u/avity)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 5:35am UTC](https://www.ruby-forum.com/t/super-intelligent-ruby-on-rails-developer-us-company-imm/117345 "2007-10-16T05:35:01Z")

</div>

Super-Intelligent Ruby on Rails Developer - US Company - Immediate We are a rapidly growing American company with staff in Latin America and Europe. We would like to retain three or more developers immediately to sta…

---

## [Initialize Static Data on Startup](https://www.ruby-forum.com/t/initialize-static-data-on-startup/117346)

<div class="topic-metadata">

**Author:** [@acerpro](https://www.ruby-forum.com/u/acerpro)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 4:58am UTC](https://www.ruby-forum.com/t/initialize-static-data-on-startup/117346 "2007-10-16T04:58:20Z")

</div>

Hi, I want to initialize some variables once on startup with static data from the db. The code is at the bottom. Here are all the scenarios I tested: Call Setup.state\_list inside environment.rb before the Rails::…

---

## [Redirect\_to not the same as clicking a link?](https://www.ruby-forum.com/t/redirect-to-not-the-same-as-clicking-a-link/117309)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 4\
**Last updated:** [October 16, 2007, 4:52am UTC](https://www.ruby-forum.com/t/redirect-to-not-the-same-as-clicking-a-link/117309 "2007-10-16T04:52:27Z")

</div>

I have a simple Rails app and to avoid another login name for users to remember I’m pulling information off our IT run IIS webserver via ColdFusion. I have a simple ColdFusion page called “getLogin.cfm” and it gets th…

---

## [New Rails Site](https://www.ruby-forum.com/t/new-rails-site/117342)

<div class="topic-metadata">

**Author:** [@mahnovetsky](https://www.ruby-forum.com/u/mahnovetsky)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 3:29am UTC](https://www.ruby-forum.com/t/new-rails-site/117342 "2007-10-16T03:29:58Z")

</div>

Hey Guys We have been working on a RoR website for the past 6 months. Thought I would share the site with the other RoR enthusiast. It is a site for recycling items in your local area. Check it out at www.scoodi.com . …

---

## [Session/logged in user issue](https://www.ruby-forum.com/t/session-logged-in-user-issue/117240)

<div class="topic-metadata">

**Author:** [@mahnovetsky](https://www.ruby-forum.com/u/mahnovetsky)\
**Replies:** 1\
**Last updated:** [October 16, 2007, 3:15am UTC](https://www.ruby-forum.com/t/session-logged-in-user-issue/117240 "2007-10-16T03:15:20Z")

</div>

Hi guys We have a really bad issue with our rails app. Sometimes a logged in user who has been browsing around for a bit will be logged in as someone else. This only happens sometimes which is making this a really di…

---

## [Gruff](https://www.ruby-forum.com/t/gruff/117338)

<div class="topic-metadata">

**Author:** [@Daksh](https://www.ruby-forum.com/u/Daksh)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 2:06am UTC](https://www.ruby-forum.com/t/gruff/117338 "2007-10-16T02:06:21Z")

</div>

Hello, I used gruff library to display some of bar charts. It works fine but Gruff API documentation does not explain much like java api. So if I wanted to try some features like spacing between two bars, 3-D graph. …

---

## [Mailer Question](https://www.ruby-forum.com/t/mailer-question/117335)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 1\
**Last updated:** [October 16, 2007, 2:05am UTC](https://www.ruby-forum.com/t/mailer-question/117335 "2007-10-16T02:05:39Z")

</div>

Just a quick question: If I have one Action Mailer set for a contact form, but I also would like to send an email to both Admin and Customer once an order was placed, do I need to create another Action Mailer? or do I…

---

## [Has\_many\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/has-many-and-belongs-to-many/117333)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 1:57am UTC](https://www.ruby-forum.com/t/has-many-and-belongs-to-many/117333 "2007-10-16T01:57:00Z")

</div>

I read this: jrhicks.net It is from 2005, so some of it has old screenshots (and it looks like Windows). Do I really create that third table on my own? Rails doesn’t automagically create it? I have students and par…

---

## [Association Help , 2 Teams playing a FootballGame](https://www.ruby-forum.com/t/association-help-2-teams-playing-a-footballgame/117332)

<div class="topic-metadata">

**Author:** [@macarthy](https://www.ruby-forum.com/u/macarthy)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 1:24am UTC](https://www.ruby-forum.com/t/association-help-2-teams-playing-a-footballgame/117332 "2007-10-16T01:24:51Z")

</div>

So I have the models class FootballGame \< ActiveRecord::Base end and class Team \< ActiveRecord::Base end I want to be able to do something like this @t1 = Team.create(:name=\>“Michigan Wolverines football”) @t1.sa…

---

## [SQL injection with :order, :limit, :group](https://www.ruby-forum.com/t/sql-injection-with-order-limit-group/117306)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 6\
**Last updated:** [October 16, 2007, 12:37am UTC](https://www.ruby-forum.com/t/sql-injection-with-order-limit-group/117306 "2007-10-16T00:37:31Z")

</div>

I know how to avoid SQL injection attacks when you use :conditions User.find :first, :conditions =\> \[“login=?”, params\[:username\]\] but how about with :order, :limit or :group? uh-oh…spaghetti-oh User.find :first, :ord…

---

## [Unique identifier on render :partial with collection](https://www.ruby-forum.com/t/unique-identifier-on-render-partial-with-collection/117327)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 12:34am UTC](https://www.ruby-forum.com/t/unique-identifier-on-render-partial-with-collection/117327 "2007-10-16T00:34:35Z")

</div>

Is there any way to pass a unique identifier to each iteration of a partial generated using the :collection option? I have a form that contains a variable number of text fields that collect data into an array that’s p…

---

## [Ruby on Rails bookmarks](https://www.ruby-forum.com/t/ruby-on-rails-bookmarks/117326)

<div class="topic-metadata">

**Author:** [@nelson](https://www.ruby-forum.com/u/nelson)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 12:16am UTC](https://www.ruby-forum.com/t/ruby-on-rails-bookmarks/117326 "2007-10-16T00:16:22Z")

</div>

I don’t know if this has already been done, but my friend and I have been maintaining our own lists of Rails-related bookmarks on del.icio.us, and we’ve decided to use collaborate and share our Rails-related stuff und…

---

## [Streaming Audio in Rails WebApp (mp3/ogg)](https://www.ruby-forum.com/t/streaming-audio-in-rails-webapp-mp3-ogg/117305)

<div class="topic-metadata">

**Author:** [@mojo.talantikite](https://www.ruby-forum.com/u/mojo.talantikite)\
**Replies:** 2\
**Last updated:** [October 16, 2007, 12:04am UTC](https://www.ruby-forum.com/t/streaming-audio-in-rails-webapp-mp3-ogg/117305 "2007-10-16T00:04:11Z")

</div>

I am trying to figure out the best way to stream audio from a rails app, however all I can find are flash based mp3 streaming options. I was looking at the XSPF Web Music Player, which does flash based mp3 streaming …

---

## [Unexpected results from roundtrip through ActiveResource to\_xml/from\_xml - string isn't the same?](https://www.ruby-forum.com/t/unexpected-results-from-roundtrip-through-activeresource-to-xml-from-xml-string-isnt-the-same/117324)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 0\
**Last updated:** [October 16, 2007, 12:00am UTC](https://www.ruby-forum.com/t/unexpected-results-from-roundtrip-through-activeresource-to-xml-from-xml-string-isnt-the-same/117324 "2007-10-16T00:00:41Z")

</div>

I’m trying to figure out why I get a different string after a round-trip through to\_xml/from\_xml. I’m using edge rails, rev is 7921, and I see the same results on Windows and Linux. Here’s the code: require File.dir…

---

## [Converting from HABTM to has\_many :through](https://www.ruby-forum.com/t/converting-from-habtm-to-has-many-through/117323)

<div class="topic-metadata">

**Author:** [@avramd](https://www.ruby-forum.com/u/avramd)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/converting-from-habtm-to-has-many-through/117323 "2007-10-15T23:55:59Z")

</div>

Hello, I have a has\_and\_belongs\_to\_many relationship that I’ve realized I need to add additional attributes to. So I’m converting it to a has\_many :through (HMT) relationship. This is the first time I’ve used an HMT, …

---

## [Many-to-many and error handling](https://www.ruby-forum.com/t/many-to-many-and-error-handling/117303)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 2\
**Last updated:** [October 15, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/many-to-many-and-error-handling/117303 "2007-10-15T23:28:27Z")

</div>

I have several simple many-to-many relationships in my app. Some use a join model, and others don’t. Let’s start with one that doesn’t. class Company \< ActiveRecord::Base has\_and\_belongs\_to\_many :industries Add an …

---

## [Setting up ROR on my VPS](https://www.ruby-forum.com/t/setting-up-ror-on-my-vps/116538)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 3\
**Last updated:** [October 15, 2007, 11:28pm UTC](https://www.ruby-forum.com/t/setting-up-ror-on-my-vps/116538 "2007-10-15T23:28:27Z")

</div>

Does the script/console need to be working on the production server? It doesn’t work on my server. I get the following error when I try to use it. I was just wondering if this is an indication that ROR isn’t installed…

---

## [New Rails plugin 'Liftoff' is available](https://www.ruby-forum.com/t/new-rails-plugin-liftoff-is-available/117316)

<div class="topic-metadata">

**Author:** [@nbits](https://www.ruby-forum.com/u/nbits)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/new-rails-plugin-liftoff-is-available/117316 "2007-10-15T22:43:45Z")

</div>

http://liftoff.rubyforge.org Summary Liftoff is a simple Rails plugin that gets your application off the ground by generating an initial set of model files from a single text file in which you specify only the names …

---

## [Updating Account Information Trouble](https://www.ruby-forum.com/t/updating-account-information-trouble/117313)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 15, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/updating-account-information-trouble/117313 "2007-10-15T22:29:16Z")

</div>

Synopsis : The basic ideea is this, user logs into his account, acceses a link and wants to edit his info, let’s say first name, email, last name. The user session is stored obviously in a session. Problem is, I canno…

---

## [ActionMailer Inserting Extra Space](https://www.ruby-forum.com/t/actionmailer-inserting-extra-space/117304)

<div class="topic-metadata">

**Author:** [@mwalsh](https://www.ruby-forum.com/u/mwalsh)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/actionmailer-inserting-extra-space/117304 "2007-10-15T20:59:05Z")

</div>

Hello, I am using a web form to send automated e-mails. One of the fields frequently takes a large amount of data. When the form is submitted and the data sent on to ActionMailer, the e-mail is sent, but any lines of…

---

## [I Broke the Console](https://www.ruby-forum.com/t/i-broke-the-console/117159)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 3\
**Last updated:** [October 15, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/i-broke-the-console/117159 "2007-10-15T20:37:21Z")

</div>

Oops. I upgraded my Rails installation. I then noticed that the Ruby was an older version than what I saw on Ruby-lang.org so I download the MacOS X one-click installer and ran it. It didn’t seem to change the ruby ve…

---

## [Config.active\_record.schema\_format = :sql](https://www.ruby-forum.com/t/config-active-record-schema-format-sql/117297)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 7:44pm UTC](https://www.ruby-forum.com/t/config-active-record-schema-format-sql/117297 "2007-10-15T19:44:48Z")

</div>

Hi! I have this strange problem… I uncommented the line from the subject in environment.rb… but I still get schema.rb file with ruby schema when running rake db:schema:dump . It is really happening, because I deleted…

---

## [Default value in select (ActionView)](https://www.ruby-forum.com/t/default-value-in-select-actionview/111649)

<div class="topic-metadata">

**Author:** [@nigel.bris](https://www.ruby-forum.com/u/nigel.bris)\
**Replies:** 8\
**Last updated:** [October 15, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/default-value-in-select-actionview/111649 "2007-10-15T18:40:46Z")

</div>

Any suggestions on how to put a default value into a select method eg. f.select :type\_id, List.find(:all).collect {|p| \[ p.name, p.id \]} but if the :type\_id is nil I want to be able to use the default value from the L…

---

## [Enumerating two different arrays into a single HTML table by common field](https://www.ruby-forum.com/t/enumerating-two-different-arrays-into-a-single-html-table-by-common-field/117289)

<div class="topic-metadata">

**Author:** [@rubylover](https://www.ruby-forum.com/u/rubylover)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/enumerating-two-different-arrays-into-a-single-html-table-by-common-field/117289 "2007-10-15T18:06:10Z")

</div>

Greetings, I have a table I’m trying to render using two different data sets. 1 is an array of Day objects. The other is an array of Payment objects. I’d like them to show up in the same HTML table and be sorted b…

---

## [Missing attribute: reorder](https://www.ruby-forum.com/t/missing-attribute-reorder/117096)

<div class="topic-metadata">

**Author:** [@will](https://www.ruby-forum.com/u/will)\
**Replies:** 2\
**Last updated:** [October 15, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/missing-attribute-reorder/117096 "2007-10-15T16:28:15Z")

</div>

I am trying to use an integer object as a flag item for displaying a link on a page called reorder that is a column in my PlanProcedures table. I’m getting an error that says The Header is NoMethodError in Manage\_pla…

---

## [Discussion on Frequently Asked Questions](https://www.ruby-forum.com/t/discussion-on-frequently-asked-questions/117270)

<div class="topic-metadata">

**Author:** [@Darthen](https://www.ruby-forum.com/u/Darthen)\
**Replies:** 0\
**Last updated:** [October 15, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/discussion-on-frequently-asked-questions/117270 "2007-10-15T15:10:57Z")

</div>

I just downloaded the bet of NetBeans 6. IT ROCKS! the ruby support is really well implemented and autocompletion works nicely even with your oen classes.

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

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