# Rails

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

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

---

## [I developed a website in Ruby on Rails](https://www.ruby-forum.com/t/i-developed-a-website-in-ruby-on-rails/192513)

<div class="topic-metadata">

**Author:** [@hisashi](https://www.ruby-forum.com/u/hisashi)\
**Replies:** 0\
**Last updated:** [August 1, 2010, 12:30am UTC](https://www.ruby-forum.com/t/i-developed-a-website-in-ruby-on-rails/192513 "2010-08-01T00:30:08Z")

</div>

I developed a website “Parapooll” in Ruby on Rails. In this site,you can value someone’s posting. Please go to Parapooll and give me a your feedback. http://www.parapooll.com/

---

## [Ferret installation](https://www.ruby-forum.com/t/ferret-installation/192457)

<div class="topic-metadata">

**Author:** [@aladrin](https://www.ruby-forum.com/u/aladrin)\
**Replies:** 4\
**Last updated:** [August 1, 2010, 12:11am UTC](https://www.ruby-forum.com/t/ferret-installation/192457 "2010-08-01T00:11:46Z")

</div>

Hi guys, I’m very new to the RoR. So please be kind to me… I’m having problems with ferret installation in rubygems. I’m on: ruby 1.9.1p429 (2010-07-02 revision 28523) \[i386-mingw32\] Rails 2.3.8 and i’m running win…

---

## [Load Gem rake tasks in Rails 3](https://www.ruby-forum.com/t/load-gem-rake-tasks-in-rails-3/192508)

<div class="topic-metadata">

**Author:** [@rejeep](https://www.ruby-forum.com/u/rejeep)\
**Replies:** 0\
**Last updated:** [July 31, 2010, 11:58pm UTC](https://www.ruby-forum.com/t/load-gem-rake-tasks-in-rails-3/192508 "2010-07-31T23:58:31Z")

</div>

Hey, I have a Gem that I’m trying to port to Rails 3. The only thing I can not get working is loading of rake tasks. How does that work in Rails 3? In Rails 2 I had to require them in the project Rakefile. But that d…

---

## [Date\_select Year as a text\_field](https://www.ruby-forum.com/t/date-select-year-as-a-text-field/192485)

<div class="topic-metadata">

**Author:** [@cam](https://www.ruby-forum.com/u/cam)\
**Replies:** 5\
**Last updated:** [July 31, 2010, 11:32pm UTC](https://www.ruby-forum.com/t/date-select-year-as-a-text-field/192485 "2010-07-31T23:32:29Z")

</div>

Hey all, Using date\_select in a form, how can I make the Year field a text\_field instead of a select? It looks like it will take more than a simple modification of the date\_select method. Thanks in advance. Cam

---

## [Rails 3 Engines](https://www.ruby-forum.com/t/rails-3-engines/189695)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 15\
**Last updated:** [July 31, 2010, 7:46pm UTC](https://www.ruby-forum.com/t/rails-3-engines/189695 "2010-07-31T19:46:50Z")

</div>

Hi, I’m experimenting a bit with Rails3 and the Rails::Engine functionality. But there are a fiew points where I get stuck: application\_helper.rb : it looks like it is not loaded. When I call some method helpers in m…

---

## [Newb here trying to understand an issue with rolling back migrations then re-running them](https://www.ruby-forum.com/t/newb-here-trying-to-understand-an-issue-with-rolling-back-migrations-then-re-running-them/192434)

<div class="topic-metadata">

**Author:** [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Replies:** 3\
**Last updated:** [July 31, 2010, 3:23pm UTC](https://www.ruby-forum.com/t/newb-here-trying-to-understand-an-issue-with-rolling-back-migrations-then-re-running-them/192434 "2010-07-31T15:23:27Z")

</div>

I’m sure this is total newb (since I am pretty newb) but I’m curious what the issue is here. I attempt to role back all my migrations which I’m doing with rake db:migrate VERSION=0 (in /Users/rick/projects/rails/si…

---

## [External commands in a controller](https://www.ruby-forum.com/t/external-commands-in-a-controller/192480)

<div class="topic-metadata">

**Author:** [@silver-spoon](https://www.ruby-forum.com/u/silver-spoon)\
**Replies:** 2\
**Last updated:** [July 31, 2010, 8:54am UTC](https://www.ruby-forum.com/t/external-commands-in-a-controller/192480 "2010-07-31T08:54:50Z")

</div>

I have various files of extensions .cpp stored on the server. When user clicks on the compile button, I should run gcc command passing the absolute path of the file to gcc compiler and then show the user the output of…

---

## [Handling URL parameters with routes](https://www.ruby-forum.com/t/handling-url-parameters-with-routes/192478)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [July 31, 2010, 7:37am UTC](https://www.ruby-forum.com/t/handling-url-parameters-with-routes/192478 "2010-07-31T07:37:17Z")

</div>

Hi, Rails 2.3.4 Ruby 1.8.7 I’m having trouble handling parameters in routes. I want to be able to handle “?x=1&y=2” style url parameters. Here’s the route: map.connect “schools/list/:country/:province/:city”, :cont…

---

## [Help Please](https://www.ruby-forum.com/t/help-please/192377)

<div class="topic-metadata">

**Author:** [@Simon\_D](https://www.ruby-forum.com/u/Simon_D)\
**Replies:** 3\
**Last updated:** [July 31, 2010, 3:42am UTC](https://www.ruby-forum.com/t/help-please/192377 "2010-07-31T03:42:57Z")

</div>

Hello, One of my friends paid a fair share of money for a website and the company that developed his site just left him and told him they would no longer host his site because he didn’t want to pay $150/mo for hostin…

---

## [Work proposition](https://www.ruby-forum.com/t/work-proposition/192443)

<div class="topic-metadata">

**Author:** [@Quijote70](https://www.ruby-forum.com/u/Quijote70)\
**Replies:** 1\
**Last updated:** [July 30, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/work-proposition/192443 "2010-07-30T23:49:24Z")

</div>

I’m looking for someone to develop the intranet of the company where I work. database providers database clients PO management (client/provides) quotes pricing system billing drop box huge files delivery system (zip f…

---

## [Testing question: try to login](https://www.ruby-forum.com/t/testing-question-try-to-login/192476)

<div class="topic-metadata">

**Author:** [@noloman](https://www.ruby-forum.com/u/noloman)\
**Replies:** 2\
**Last updated:** [July 30, 2010, 10:32pm UTC](https://www.ruby-forum.com/t/testing-question-try-to-login/192476 "2010-07-30T22:32:06Z")

</div>

Hey everybody, I’m trying to test some code I wrote, and I wrote the following def try\_to\_login(antonio) antonio = users(:one) #post :login, :user =\> { :screen\_name =\> user.screen\_name, :email =\> user.email, :passwo…

---

## [:last Question](https://www.ruby-forum.com/t/last-question/192474)

<div class="topic-metadata">

**Author:** [@crashbangboom](https://www.ruby-forum.com/u/crashbangboom)\
**Replies:** 3\
**Last updated:** [July 30, 2010, 9:42pm UTC](https://www.ruby-forum.com/t/last-question/192474 "2010-07-30T21:42:15Z")

</div>

I’m new to rails and am trying to get an understanding on some of the language usage…I have a mysql database with a table of data…I want to retrieve the last record in that table without sending it an ‘id’ or anything…

---

## [How to structure this HAML code to not include some \<div\>](https://www.ruby-forum.com/t/how-to-structure-this-haml-code-to-not-include-some-div/192437)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 4\
**Last updated:** [July 30, 2010, 9:37pm UTC](https://www.ruby-forum.com/t/how-to-structure-this-haml-code-to-not-include-some-div/192437 "2010-07-30T21:37:22Z")

</div>

if the HAML is: .class1 .class2 .class3 %div content... many lines How can it be made so that it doesn’t respond with class1 and class2 if it is Ajax? - if !request.xhr? .class1 .class2 .cl…

---

## [How do I add data to record](https://www.ruby-forum.com/t/how-do-i-add-data-to-record/192473)

<div class="topic-metadata">

**Author:** [@crashbangboom](https://www.ruby-forum.com/u/crashbangboom)\
**Replies:** 2\
**Last updated:** [July 30, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/how-do-i-add-data-to-record/192473 "2010-07-30T21:21:53Z")

</div>

I have a database table ‘tankticket’ that has the following fields: id tank\_id ticket\_date batchid product api tank\_temp gauge gross\_vol vol\_correction roof\_correction net\_vol ticket\_vol created\_on updated…

---

## [Error when trying to send JSON from rails to javascript/jQuery](https://www.ruby-forum.com/t/error-when-trying-to-send-json-from-rails-to-javascript-jquery/192475)

<div class="topic-metadata">

**Author:** [@lucas](https://www.ruby-forum.com/u/lucas)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 8:50pm UTC](https://www.ruby-forum.com/t/error-when-trying-to-send-json-from-rails-to-javascript-jquery/192475 "2010-07-30T20:50:51Z")

</div>

Hello, I’m trying to send the code for a google ad from my server to a web browser. The code is not embedded in the original HTML of the webpage. The code is sent to the browser while page is rendering. We are sendin…

---

## [JOBS -- Lead Ruby Developer -- Connecticut (NO RELOCATION OFFERED)](https://www.ruby-forum.com/t/jobs-lead-ruby-developer-connecticut-no-relocation-offered/192472)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 8:50pm UTC](https://www.ruby-forum.com/t/jobs-lead-ruby-developer-connecticut-no-relocation-offered/192472 "2010-07-30T20:50:16Z")

</div>

I have a great Full Time Perm opportunity in CT for an experienced Lead Developer – Ruby on Rails. A successful candidate will have a comprehensive background in Rails, Ajax, HTML, DHTML, CSS, JavaScript. Set standar…

---

## [Getting error while studying rails](https://www.ruby-forum.com/t/getting-error-while-studying-rails/192467)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 1\
**Last updated:** [July 30, 2010, 6:55pm UTC](https://www.ruby-forum.com/t/getting-error-while-studying-rails/192467 "2010-07-30T18:55:31Z")

</div>

Hello, I was going through the tutorial in this link: Wehn I came to section 6.2, I added the link using following code \<%= link\_to “My Blog”, posts\_path %\> and I get this error: undefined local variable or method \`…

---

## [\[Jobs\] Need help in Los Angeles Area](https://www.ruby-forum.com/t/jobs-need-help-in-los-angeles-area/192466)

<div class="topic-metadata">

**Author:** [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 6:42pm UTC](https://www.ruby-forum.com/t/jobs-need-help-in-los-angeles-area/192466 "2010-07-30T18:42:38Z")

</div>

Full-time position. Looking for someone versatile who can help with SQL, as well as, with ROR development for our intranet. Here’s the requirements: Need: \* SQL language knowledge: SELECT, JOINS, TRIGGERS, STORED PR…

---

## [A Rails 3 centric Gem with it's own routes.rb?](https://www.ruby-forum.com/t/a-rails-3-centric-gem-with-its-own-routes-rb/192343)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 2\
**Last updated:** [July 30, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/a-rails-3-centric-gem-with-its-own-routes-rb/192343 "2010-07-30T17:51:42Z")

</div>

I am working on a Gem for Rails 3 apps. In it, I want to include another GEM/lib/app/config/routes.rb to have gem level access to add new routes non programmatically. i.e., not runtime generated. During Gem initializa…

---

## [Rails in Ubuntu - need help](https://www.ruby-forum.com/t/rails-in-ubuntu-need-help/192430)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 5\
**Last updated:** [July 30, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/rails-in-ubuntu-need-help/192430 "2010-07-30T17:43:01Z")

</div>

Hello RoR, When I try apt-get install rails in (K)Ubuntu, all I get is Rails 2.2.3 , what to do to install rails 2.3.8 (the latest version) Thanks in advance.

---

## [Snowman: 2-3-stable with ruby 1.9.2](https://www.ruby-forum.com/t/snowman-2-3-stable-with-ruby-1-9-2/192460)

<div class="topic-metadata">

**Author:** [@Rudolf\_Gavlas](https://www.ruby-forum.com/u/Rudolf_Gavlas)\
**Replies:** 0\
**Last updated:** [July 30, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/snowman-2-3-stable-with-ruby-1-9-2/192460 "2010-07-30T17:42:54Z")

</div>

Hi, I would like to know, if it is safe to expect rails from 2-3-stable branch to cooperate well with ruby 1.9.2 regarding encoding. I have not seen the “snowman commit” (Fix several known web encoding issues: · rail…

---

## [Progress bar for a form containing a file](https://www.ruby-forum.com/t/progress-bar-for-a-form-containing-a-file/192413)

<div class="topic-metadata">

**Author:** [@lilyweb](https://www.ruby-forum.com/u/lilyweb)\
**Replies:** 6\
**Last updated:** [July 30, 2010, 5:42pm UTC](https://www.ruby-forum.com/t/progress-bar-for-a-form-containing-a-file/192413 "2010-07-30T17:42:18Z")

</div>

Hi, I have a form that contains a file field. Since the file can be rather big, I would like to display a progress bar after the user clicks the submit button on the page, so he can see the progress of the upload. I…

---

## [Datetime\_select 12 hour display? (AM/PM)?](https://www.ruby-forum.com/t/datetime-select-12-hour-display-am-pm/196441)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 10\
**Last updated:** [July 30, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/datetime-select-12-hour-display-am-pm/196441 "2010-07-30T17:24:41Z")

</div>

I have been looking all through the documentation and can’t find anything to display the time in 12 hours format with an AM/PM option. Is there an option for datetime\_select to do this? Or a plugin? Thanks!

---

## [Simple View Template Question](https://www.ruby-forum.com/t/simple-view-template-question/192425)

<div class="topic-metadata">

**Author:** [@esjd](https://www.ruby-forum.com/u/esjd)\
**Replies:** 4\
**Last updated:** [July 30, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/simple-view-template-question/192425 "2010-07-30T17:16:39Z")

</div>

I’m trying to render a list of div’s with ids “item1”, “item2”, “item3”, etc… Trying to do it like this: \<% for i in removed\_email\_address@domain.invalid %\> .. blah blah .. \<% end %\> Pretty sure the syntax is wron…

---

## [Paginating an existing array](https://www.ruby-forum.com/t/paginating-an-existing-array/101817)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 1\
**Last updated:** [July 30, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/paginating-an-existing-array/101817 "2010-07-30T16:40:14Z")

</div>

I have a rather complex query that constructs the array @posts I’d really like to have these results paginated, but the nature of the query I’m running won’t let me use pagination the normal way. Since I already have…

---

## [How to update a single table cell using ajax](https://www.ruby-forum.com/t/how-to-update-a-single-table-cell-using-ajax/192341)

<div class="topic-metadata">

**Author:** [@techy\_bolek](https://www.ruby-forum.com/u/techy_bolek)\
**Replies:** 3\
**Last updated:** [July 30, 2010, 3:52pm UTC](https://www.ruby-forum.com/t/how-to-update-a-single-table-cell-using-ajax/192341 "2010-07-30T15:52:40Z")

</div>

I’m trying to update a table cell based upon a selection in another cell identified as “descPlaceholder”. However, instead of getting the intended cell updated the updated string gets displayed completely outside of t…

---

## [Migration numbers](https://www.ruby-forum.com/t/migration-numbers/192439)

<div class="topic-metadata">

**Author:** [@disruptivetechnolog](https://www.ruby-forum.com/u/disruptivetechnolog)\
**Replies:** 8\
**Last updated:** [July 30, 2010, 3:43pm UTC](https://www.ruby-forum.com/t/migration-numbers/192439 "2010-07-30T15:43:29Z")

</div>

Why do the migration numbers not appear. I am following the famous depot example, but I am finding that when I migrate the database using rake db:migrate I get a createproducts file with a long integer string before t…

---

## [Have a problem JSON and Hash](https://www.ruby-forum.com/t/have-a-problem-json-and-hash/192436)

<div class="topic-metadata">

**Author:** [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Replies:** 1\
**Last updated:** [July 30, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/have-a-problem-json-and-hash/192436 "2010-07-30T13:51:40Z")

</div>

Hi everybody. I have using ActiveSupport::JSON library in rails I have a json string: test= {“C1”:{“id”:“C1”,“mode”:“new”,“type”:“block”,“name”:“new block C1”,“unit”:"",“choices”:\[\],“index”:10},“R1”:{“id”:“R1”,“mode”…

---

## [No more @controller.expects in Test::Unit?](https://www.ruby-forum.com/t/no-more-controller-expects-in-test-unit/192217)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 9\
**Last updated:** [July 30, 2010, 1:47pm UTC](https://www.ruby-forum.com/t/no-more-controller-expects-in-test-unit/192217 "2010-07-30T13:47:22Z")

</div>

Hi, In my functional tests it was convenient to use: @controller.expects(:admin?).at\_least\_once.returns(true) to simulate requests which come from an admin user. But it seems that in Rails 2.3.8 it’s gone away. What …

---

## [File creation in jquery + Rails](https://www.ruby-forum.com/t/file-creation-in-jquery-rails/192435)

<div class="topic-metadata">

**Author:** [@silver-spoon](https://www.ruby-forum.com/u/silver-spoon)\
**Replies:** 3\
**Last updated:** [July 30, 2010, 1:45pm UTC](https://www.ruby-forum.com/t/file-creation-in-jquery-rails/192435 "2010-07-30T13:45:49Z")

</div>

I am new to Rails. In my web application, the user can type the contents of a file in a textarea or a content Editable iFrame and when he saves the file, the contents should be written to the file with the file extens…

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

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