# Rails

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

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

---

## [Rails and CSV Files](https://www.ruby-forum.com/t/rails-and-csv-files/154663)

<div class="topic-metadata">

**Author:** [@ideale](https://www.ruby-forum.com/u/ideale)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/rails-and-csv-files/154663 "2008-12-02T19:10:51Z")

</div>

Hi I’m programming in rails a web application which uses 4 CSV files prof.csv, student.csv et course.csv et subscriptions.csv a prof can give one or many courses, a student can subscribe to one or many courses etc … …

---

## [Accessing Web service methods in Rails 2.x](https://www.ruby-forum.com/t/accessing-web-service-methods-in-rails-2-x/154658)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [December 2, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/accessing-web-service-methods-in-rails-2-x/154658 "2008-12-02T18:38:39Z")

</div>

Hi I’m new to ROR. I have to access web service methods for the app i’m working on now. I tried creating a web service to get a feel of it using actionwebservice. I installed the gem but I don’t think my rails instal…

---

## [Inserting to a View - Auto Incrementing Issue](https://www.ruby-forum.com/t/inserting-to-a-view-auto-incrementing-issue/154566)

<div class="topic-metadata">

**Author:** [@phudson1442](https://www.ruby-forum.com/u/phudson1442)\
**Replies:** 1\
**Last updated:** [December 2, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/inserting-to-a-view-auto-incrementing-issue/154566 "2008-12-02T17:58:00Z")

</div>

Hi, My app has a model defined like this: MyModel \< ActiveRecord::Base set\_table\_name “SOME\_LEGACY\_VIEW” set\_primary\_key “LEGACY\_ID” end The Database is DB2. The view definition looks like this SELECT LEGACY\_ID,…

---

## [SuperInPlaceControls - Works or just Evil?](https://www.ruby-forum.com/t/superinplacecontrols-works-or-just-evil/146826)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 1\
**Last updated:** [December 2, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/superinplacecontrols-works-or-just-evil/146826 "2008-12-02T17:27:20Z")

</div>

Hi, I’m trying to implement SuperInPlaceControls in a show view. The record is updating, but the text does not refresh, nor is the “OK” button styled. I’m looking for any project, post or kind soul who can point me t…

---

## [New to Rails... Help!](https://www.ruby-forum.com/t/new-to-rails-help/154576)

<div class="topic-metadata">

**Author:** [@den1jay](https://www.ruby-forum.com/u/den1jay)\
**Replies:** 6\
**Last updated:** [December 2, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/new-to-rails-help/154576 "2008-12-02T15:56:04Z")

</div>

I am new to Ruby/InstantRails. I am using InstantRails 2.0.2 with mysql database My application is named Area, it has two tables: people and country Table people has two columns: name and tribe Table country has two …

---

## [Aasm callback order?](https://www.ruby-forum.com/t/aasm-callback-order/151926)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 7\
**Last updated:** [December 2, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/aasm-callback-order/151926 "2008-12-02T15:14:16Z")

</div>

Hello! Sometime ago I ran across a webpage where someone had identified the full callback sequence for an object lifecycle including AASM with it’s :enter and :exit and whatnot callbacks. Unfortunately, I can’t find …

---

## [Warning: Ambiguous first argument; make sure](https://www.ruby-forum.com/t/warning-ambiguous-first-argument-make-sure/152638)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 2\
**Last updated:** [December 2, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/warning-ambiguous-first-argument-make-sure/152638 "2008-12-02T14:54:49Z")

</div>

Hello, I’m getting this warning: Warning: Ambiguous first argument; make sure. in my unit test: assert\_match /^\[a-zA-Z0-9\]+$/, user.username Does anyone know why or how to change it so it disappears? Thanks

---

## [Problem with foreign key](https://www.ruby-forum.com/t/problem-with-foreign-key/154636)

<div class="topic-metadata">

**Author:** [@ashil\_2p](https://www.ruby-forum.com/u/ashil_2p)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/problem-with-foreign-key/154636 "2008-12-02T14:30:54Z")

</div>

Hello I’ve a “User” model. A user, belongs to a state model. I’ve the following in the user form: \<%= f.select(:state\_id, State.find(:all).map {|c| \[c.name, c.id\]},{:prompt =\> "Select a canton"}, {:onchange =\> "#{…

---

## [Database Retrieval - user interface - is there a ?gem? that already does this?](https://www.ruby-forum.com/t/database-retrieval-user-interface-is-there-a-gem-that-already-does-this/154634)

<div class="topic-metadata">

**Author:** [@southside\_bruce](https://www.ruby-forum.com/u/southside_bruce)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/database-retrieval-user-interface-is-there-a-gem-that-already-does-this/154634 "2008-12-02T13:23:32Z")

</div>

Hi, although I have about 25 years in the software/IT business as a Federal Government employee, somehow I have avoided Web development all this time… until now… I have an application at work that I want to tackle, a…

---

## [RubyPeople - I am after a Ruby on Rails Developer for the UK](https://www.ruby-forum.com/t/rubypeople-i-am-after-a-ruby-on-rails-developer-for-the-uk/154633)

<div class="topic-metadata">

**Author:** [@micky](https://www.ruby-forum.com/u/micky)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/rubypeople-i-am-after-a-ruby-on-rails-developer-for-the-uk/154633 "2008-12-02T13:23:32Z")

</div>

Ruby-People.com - Due to recent relocation an opportunity has arisen for 2 creative and highly skilled Ruby on Rails Developers with at least 1 year commercial experience to join our client - a leading Internet servic…

---

## [Problem with extend rails(add new function in lib)](https://www.ruby-forum.com/t/problem-with-extend-rails-add-new-function-in-lib/154612)

<div class="topic-metadata">

**Author:** [@hei](https://www.ruby-forum.com/u/hei)\
**Replies:** 5\
**Last updated:** [December 2, 2008, 11:37am UTC](https://www.ruby-forum.com/t/problem-with-extend-rails-add-new-function-in-lib/154612 "2008-12-02T11:37:45Z")

</div>

I do things below: In lib/translater.rb class Translater require “rubygems” require “rmmseg” include “RMMSeg” … def segment(text) RMMSeg::segment(text) end end in helper/xx/xxx.rb module xx require “translat…

---

## [Mongrel's memory usage](https://www.ruby-forum.com/t/mongrels-memory-usage/154628)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 11:31am UTC](https://www.ruby-forum.com/t/mongrels-memory-usage/154628 "2008-12-02T11:31:41Z")

</div>

We’ve got a problem with a memory leak (we think) on our site. We’ve got monit running, which has helped the problem a lot by restarting mongrels when they get too bloated. But, this is obviously just a temporary so…

---

## [Form\_for with partial using do |@f|](https://www.ruby-forum.com/t/form-for-with-partial-using-do-f/154603)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 1\
**Last updated:** [December 2, 2008, 10:54am UTC](https://www.ruby-forum.com/t/form-for-with-partial-using-do-f/154603 "2008-12-02T10:54:39Z")

</div>

Is it possible to pass this FormBuilder object to a controller and then back to a partial? I have a form rendering a partial that i would like to update with a call to my controller based on user selectable parameters…

---

## [Setting up Environment](https://www.ruby-forum.com/t/setting-up-environment/154495)

<div class="topic-metadata">

**Author:** [@davidf](https://www.ruby-forum.com/u/davidf)\
**Replies:** 2\
**Last updated:** [December 2, 2008, 10:47am UTC](https://www.ruby-forum.com/t/setting-up-environment/154495 "2008-12-02T10:47:01Z")

</div>

I’m new to ruby on rails and have been struggling trying to set up the environment on my machines. I’ve never had so much trouble getting started (I must admit that I’ve primarily used Visual Studio 08 and C#.) I’ve …

---

## [Calling Rake from INSIDE the application](https://www.ruby-forum.com/t/calling-rake-from-inside-the-application/154606)

<div class="topic-metadata">

**Author:** [@Dante\_R](https://www.ruby-forum.com/u/Dante_R)\
**Replies:** 1\
**Last updated:** [December 2, 2008, 8:44am UTC](https://www.ruby-forum.com/t/calling-rake-from-inside-the-application/154606 "2008-12-02T08:44:25Z")

</div>

Hey there I would like to know if I can call a rake task from inside my Rails App. Something like class MyModel \< ActiveRecord::Base after\_save :run\_task def run\_task Rake.run(“my:little:task”) end end This is t…

---

## [In place form editing](https://www.ruby-forum.com/t/in-place-form-editing/154618)

<div class="topic-metadata">

**Author:** [@napster](https://www.ruby-forum.com/u/napster)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 6:37am UTC](https://www.ruby-forum.com/t/in-place-form-editing/154618 "2008-12-02T06:37:59Z")

</div>

Hi Guys, i need to implement in place form editing in my application and i am not using scaffold here will u plz help me to solve this issue

---

## [Valid? is not working in Rails 2.2.2](https://www.ruby-forum.com/t/valid-is-not-working-in-rails-2-2-2/154522)

<div class="topic-metadata">

**Author:** [@vmvipin](https://www.ruby-forum.com/u/vmvipin)\
**Replies:** 7\
**Last updated:** [December 2, 2008, 5:45am UTC](https://www.ruby-forum.com/t/valid-is-not-working-in-rails-2-2-2/154522 "2008-12-02T05:45:19Z")

</div>

Hey, I have a problem regarding the validation in rails 2.2.2. In my model User has these conditions. validates\_presence\_of :user\_name, :password, :email, :display\_name validates\_uniqueness\_of :email, :message =\> ’ …

---

## [Just installed acts\_as\_state\_machine and now cant launch the server](https://www.ruby-forum.com/t/just-installed-acts-as-state-machine-and-now-cant-launch-the-server/154607)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 1\
**Last updated:** [December 2, 2008, 5:37am UTC](https://www.ruby-forum.com/t/just-installed-acts-as-state-machine-and-now-cant-launch-the-server/154607 "2008-12-02T05:37:43Z")

</div>

I just installed AASM and when I run ‘ruby script/server’ it fails with: =\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick) =\> Rails application starting on http://0.0.0.0:3000 =\> Call with -d to detac…

---

## [Dev mode ok, prod mode application failed error](https://www.ruby-forum.com/t/dev-mode-ok-prod-mode-application-failed-error/154611)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 4:57am UTC](https://www.ruby-forum.com/t/dev-mode-ok-prod-mode-application-failed-error/154611 "2008-12-02T04:57:04Z")

</div>

Hello, I’m new to RoR and trying to deploy a RoR2 app. It works in development mode, but when I switch to production mode by uncommenting the ENV\[‘RAILS\_ENV’\] ||= ‘production’ line in config/environment.rb, I get the…

---

## [Non-Profit Start up](https://www.ruby-forum.com/t/non-profit-start-up/154600)

<div class="topic-metadata">

**Author:** [@maarnold](https://www.ruby-forum.com/u/maarnold)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 2:49am UTC](https://www.ruby-forum.com/t/non-profit-start-up/154600 "2008-12-02T02:49:19Z")

</div>

Hi, My name is Marvin Arnold. I am a junior at MIT in EECS. I am starting a non-profit, uService, with the mission of getting more college students volunteering. Although uService is a non profit, it has a unique and…

---

## [Rake test:units failing](https://www.ruby-forum.com/t/rake-test-units-failing/154577)

<div class="topic-metadata">

**Author:** [@mpathare](https://www.ruby-forum.com/u/mpathare)\
**Replies:** 6\
**Last updated:** [December 2, 2008, 2:37am UTC](https://www.ruby-forum.com/t/rake-test-units-failing/154577 "2008-12-02T02:37:57Z")

</div>

Hello, I am a rails beginner and am having some trouble running the unit tests using rake. i am following the example in the simply rails 2 book. I have a simple model with one field “name” and a validation for name …

---

## [Optional parameter in nested routes](https://www.ruby-forum.com/t/optional-parameter-in-nested-routes/154597)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 0\
**Last updated:** [December 2, 2008, 2:22am UTC](https://www.ruby-forum.com/t/optional-parameter-in-nested-routes/154597 "2008-12-02T02:22:52Z")

</div>

All my charges belong to a company. On the new charge form, sometimes I specify a company, sometimes I don’t because I don’t know the company beforehand in all cases. So, sometimes the @company object is nil. I’m usi…

---

## [Views and bindings](https://www.ruby-forum.com/t/views-and-bindings/154579)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 3\
**Last updated:** [December 2, 2008, 12:23am UTC](https://www.ruby-forum.com/t/views-and-bindings/154579 "2008-12-02T00:23:56Z")

</div>

hello all, I was hoping someone could describe to me how this works. Say I have some block of code like this \<% my\_cool\_block do %\> \<% my\_var = 5 %\> \<%= some\_helper\_method “My var” %\> \<% end %\> And in my helper de…

---

## [Strange rails error on ubuntu 8.10](https://www.ruby-forum.com/t/strange-rails-error-on-ubuntu-8-10/154520)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 2\
**Last updated:** [December 2, 2008, 12:22am UTC](https://www.ruby-forum.com/t/strange-rails-error-on-ubuntu-8-10/154520 "2008-12-02T00:22:12Z")

</div>

Just upgraded from 8.04 to 8.10, which bumped my Ruby version to 1.8.7, and my Rails app (frozen to 2.2.2) gets a strange error on startup. I can easily reproduce just by running script/about: $ script/about /vendor…

---

## [Call\_rake results in sh: /opt/local/bin/rake: No such file or directory](https://www.ruby-forum.com/t/call-rake-results-in-sh-opt-local-bin-rake-no-such-file-or-directory/154588)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 1\
**Last updated:** [December 2, 2008, 12:05am UTC](https://www.ruby-forum.com/t/call-rake-results-in-sh-opt-local-bin-rake-no-such-file-or-directory/154588 "2008-12-02T00:05:13Z")

</div>

Hi On my Linux Production Box, a Background Process results in following error: (rdb:5) call\_rake(:send\_mailing, {:mailing\_id =\> params \[:id\].to\_i, :rails\_env =\> Rails.env}) sh: /opt/local/bin/rake: No such file or …

---

## [Formatting issue](https://www.ruby-forum.com/t/formatting-issue/154508)

<div class="topic-metadata">

**Author:** [@vaughajj](https://www.ruby-forum.com/u/vaughajj)\
**Replies:** 6\
**Last updated:** [December 2, 2008, 12:01am UTC](https://www.ruby-forum.com/t/formatting-issue/154508 "2008-12-02T00:01:26Z")

</div>

I have a text file that has data in it which is perfectly formatted the way I want it. I have the following code in my controller to open the file and read each line into an array which I then call from my view. The p…

---

## [ActionMailer weirdness: bad html '=3d' for all '='](https://www.ruby-forum.com/t/actionmailer-weirdness-bad-html-3d-for-all/154471)

<div class="topic-metadata">

**Author:** [@minka](https://www.ruby-forum.com/u/minka)\
**Replies:** 4\
**Last updated:** [December 1, 2008, 11:57pm UTC](https://www.ruby-forum.com/t/actionmailer-weirdness-bad-html-3d-for-all/154471 "2008-12-01T23:57:01Z")

</div>

I am getting html output in my email body with spurious characters that cannot be rendered, so that my links are not handled properly. What am I not getting here? My email body contains: -----------------clip--------…

---

## [Error w/dynamic fixtures](https://www.ruby-forum.com/t/error-w-dynamic-fixtures/154263)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 2\
**Last updated:** [December 1, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/error-w-dynamic-fixtures/154263 "2008-12-01T23:45:20Z")

</div>

Hey All, I’m trying to do the basic test/unit stuff & having trouble w/a dynamic fixture error. I’m running rails 2.0.2 on windows. I have statuses & projects. Projects belong\_to status and so forth. statuses.yml …

---

## [The verdict on Rails scaffolding](https://www.ruby-forum.com/t/the-verdict-on-rails-scaffolding/154096)

<div class="topic-metadata">

**Author:** [@toltec](https://www.ruby-forum.com/u/toltec)\
**Replies:** 18\
**Last updated:** [December 1, 2008, 11:45pm UTC](https://www.ruby-forum.com/t/the-verdict-on-rails-scaffolding/154096 "2008-12-01T23:45:19Z")

</div>

For every tutorial that uses scaffolding, there’s an article that says you shouldn’t use it in real websites. Supposedly it just serves to “sketch things out quickly”, “test database connectivity” and other stuff. Som…

---

## [Finding out if ISP web server supports Ruby/Rails](https://www.ruby-forum.com/t/finding-out-if-isp-web-server-supports-ruby-rails/154561)

<div class="topic-metadata">

**Author:** [@ptriller](https://www.ruby-forum.com/u/ptriller)\
**Replies:** 1\
**Last updated:** [December 1, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/finding-out-if-isp-web-server-supports-ruby-rails/154561 "2008-12-01T23:28:06Z")

</div>

My ISP is Rogers.com (in Ontario Canada). I have found out that their web server is Apache 2.0.52 by using cURL HEAD. My question is how do I find out if they support Ruby/Rails? I.E. if they are running the needed e…

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

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