# Rails

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

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

---

## [Error when executing rake db:schema:load](https://www.ruby-forum.com/t/error-when-executing-rake-dbload/151880)

<div class="topic-metadata">

**Author:** [@grios](https://www.ruby-forum.com/u/grios)\
**Replies:** 0\
**Last updated:** [October 27, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/error-when-executing-rake-dbload/151880 "2008-10-27T14:10:51Z")

</div>

Hi I’m beginning with rails and I hit this problem trying to deploy my application. The local environment is CentOS 5.2 just as the target environment, the database is Oracle 10g. Locally all works fine but in the se…

---

## [Connecting to mysql on locomotive](https://www.ruby-forum.com/t/connecting-to-mysql-on-locomotive/151794)

<div class="topic-metadata">

**Author:** [@tim](https://www.ruby-forum.com/u/tim)\
**Replies:** 3\
**Last updated:** [October 27, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/connecting-to-mysql-on-locomotive/151794 "2008-10-27T13:06:08Z")

</div>

Hi, I am having trouble connecting to mysql on a locomotive installation. Everything is working fine through my rails application (it is able to read the database via the database.yml configuration), but when I try t…

---

## [Functional test behaving oddly in a manually working model](https://www.ruby-forum.com/t/functional-test-behaving-oddly-in-a-manually-working-model/151876)

<div class="topic-metadata">

**Author:** [@vahagn](https://www.ruby-forum.com/u/vahagn)\
**Replies:** 5\
**Last updated:** [October 27, 2008, 12:33pm UTC](https://www.ruby-forum.com/t/functional-test-behaving-oddly-in-a-manually-working-model/151876 "2008-10-27T12:33:22Z")

</div>

Hello all,- wondering if you can help me with a weird testing problem. I have a Newsletter model that has been developed and tested in a previous version (older branch) of my current project. Under that old project, …

---

## [Passing more than one parameters to redirect\_to](https://www.ruby-forum.com/t/passing-more-than-one-parameters-to-redirect-to/151660)

<div class="topic-metadata">

**Author:** [@selva\_rails](https://www.ruby-forum.com/u/selva_rails)\
**Replies:** 6\
**Last updated:** [October 27, 2008, 11:49am UTC](https://www.ruby-forum.com/t/passing-more-than-one-parameters-to-redirect-to/151660 "2008-10-27T11:49:11Z")

</div>

Hi, I am getting some error which I am clue less. I try to pass more than one parameter with redirect\_to, For example, My params are… search =\> {“name”=\>"", “bus\_group”=\>“1”, “region”=\>"", “unapproved”=\>"", “tech\_ow…

---

## [Disable validation on edit](https://www.ruby-forum.com/t/disable-validation-on-edit/151871)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 5\
**Last updated:** [October 27, 2008, 10:55am UTC](https://www.ruby-forum.com/t/disable-validation-on-edit/151871 "2008-10-27T10:55:55Z")

</div>

Hi all I want to disable validation when i m calling the edit method. The reason y i want to do this is that i m allowing only certain fields to be edited. I dont want to pass hidden values. Is there any method to di…

---

## [How do i enable SSL?](https://www.ruby-forum.com/t/how-do-i-enable-ssl/150327)

<div class="topic-metadata">

**Author:** [@gilbertsavier](https://www.ruby-forum.com/u/gilbertsavier)\
**Replies:** 8\
**Last updated:** [October 27, 2008, 10:30am UTC](https://www.ruby-forum.com/t/how-do-i-enable-ssl/150327 "2008-10-27T10:30:00Z")

</div>

Hello. I am developing an application using ruby on rails. On of the requirements is to use secure socket layer for secure transaction and verification of users. How do I Turn on and use SSL on ruby on rails? – Love…

---

## [Rename file using file\_column](https://www.ruby-forum.com/t/rename-file-using-file-column/151869)

<div class="topic-metadata">

**Author:** [@fmh](https://www.ruby-forum.com/u/fmh)\
**Replies:** 0\
**Last updated:** [October 27, 2008, 9:38am UTC](https://www.ruby-forum.com/t/rename-file-using-file-column/151869 "2008-10-27T09:38:24Z")

</div>

hello, how to rename file and keeping extension using file\_column ?

---

## [How to handle web browser's history in Ruby on Rails?](https://www.ruby-forum.com/t/how-to-handle-web-browsers-history-in-ruby-on-rails/151833)

<div class="topic-metadata">

**Author:** [@nuugii](https://www.ruby-forum.com/u/nuugii)\
**Replies:** 2\
**Last updated:** [October 27, 2008, 7:42am UTC](https://www.ruby-forum.com/t/how-to-handle-web-browsers-history-in-ruby-on-rails/151833 "2008-10-27T07:42:55Z")

</div>

Hey guys’ How to handle web browser’s history, back button, bookmark button? And how to add link\_to\_remote, form\_remote\_tag to web browser’s history. Please help me

---

## [Array in the link](https://www.ruby-forum.com/t/array-in-the-link/151857)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 1\
**Last updated:** [October 27, 2008, 4:50am UTC](https://www.ruby-forum.com/t/array-in-the-link/151857 "2008-10-27T04:50:34Z")

</div>

I have an array in an view link submitted to an action.This array contains the objects which have not any relation each other,they also have no model relation.The link look like this : ############################### …

---

## [Emacs rails setup](https://www.ruby-forum.com/t/emacs-rails-setup/151815)

<div class="topic-metadata">

**Author:** [@roger](https://www.ruby-forum.com/u/roger)\
**Replies:** 3\
**Last updated:** [October 27, 2008, 2:04am UTC](https://www.ruby-forum.com/t/emacs-rails-setup/151815 "2008-10-27T02:04:30Z")

</div>

Hi Everyone, Newbie, I need help on setting up my emacs rails on Linux-Ubuntu. I did tried to google, but can’t find any detail steps and I’m confuse and luck on detail on .emacs file setup. Thanks in advance. Roger …

---

## [Add value to select box](https://www.ruby-forum.com/t/add-value-to-select-box/151846)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 2\
**Last updated:** [October 27, 2008, 12:57am UTC](https://www.ruby-forum.com/t/add-value-to-select-box/151846 "2008-10-27T00:57:17Z")

</div>

Hey guys! I was wondering. I’m generating a select box in my view where the user can pick from a number of alternatives. However, I would like the last option to be “Add new…” and then a box would pop up allowing the …

---

## [Many to many through and named\_scopes](https://www.ruby-forum.com/t/many-to-many-through-and-named-scopes/151839)

<div class="topic-metadata">

**Author:** [@jc71229](https://www.ruby-forum.com/u/jc71229)\
**Replies:** 2\
**Last updated:** [October 26, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/many-to-many-through-and-named-scopes/151839 "2008-10-26T23:40:07Z")

</div>

Hi, I have problem with my named scopes. A membership has many property\_details through join\_property\_details. I do an anonymous named\_scope to get all memberships hat have ‘ns’ and ‘ae’ as property\_details. However …

---

## [Export to Excel - large file](https://www.ruby-forum.com/t/export-to-excel-large-file/151834)

<div class="topic-metadata">

**Author:** [@Marcello\_P](https://www.ruby-forum.com/u/Marcello_P)\
**Replies:** 2\
**Last updated:** [October 26, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/export-to-excel-large-file/151834 "2008-10-26T22:11:05Z")

</div>

Hello, I need to export some data to an Excel file. I’m using a xml view to do that. But now, the file is too large, and taking almost 30 minutes to render… Is there another way that I can do this ?? Thanks for any…

---

## [Rakismet plugin](https://www.ruby-forum.com/t/rakismet-plugin/151842)

<div class="topic-metadata">

**Author:** [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Replies:** 0\
**Last updated:** [October 26, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/rakismet-plugin/151842 "2008-10-26T20:08:29Z")

</div>

Hi there everyone, Does anyone know if there is a different location for the Rakismet plugin? When I run: script/plugin install git://github.com/jfrench/rakismet I get a message stating that the plugin could not be …

---

## [Metaclass/Singleton class question](https://www.ruby-forum.com/t/metaclass-singleton-class-question/151840)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 1\
**Last updated:** [October 26, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/metaclass-singleton-class-question/151840 "2008-10-26T20:02:37Z")

</div>

I understand that (class \<\< self; self; end) returns the singelton class of object that is calling it but why would use that instead of self \<\< MyClass …? For example, arent these all equivalent? class \<\< String def…

---

## [Rake problem with binary tables](https://www.ruby-forum.com/t/rake-problem-with-binary-tables/151818)

<div class="topic-metadata">

**Author:** [@oliver](https://www.ruby-forum.com/u/oliver)\
**Replies:** 3\
**Last updated:** [October 26, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/rake-problem-with-binary-tables/151818 "2008-10-26T19:14:33Z")

</div>

Hello, Excuse me if this is obvious. I have tried to find an answer to this problem without luck. A google search does not seem to show this as a common problem. I have an existing database, with a schema that has …

---

## [Creating an escaped JOIN?](https://www.ruby-forum.com/t/creating-an-escaped-join/151820)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [October 26, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/creating-an-escaped-join/151820 "2008-10-26T14:49:00Z")

</div>

Hi, When creating a custom find for a model, with AR it is possible to do something like: :conditions =\> \[‘user\_id = ?’, params\[:id\]\] However, I would like to know if it is possible to do the same when specifying a …

---

## [MissingSourceFile in LookController#index](https://www.ruby-forum.com/t/missingsourcefile-in-lookcontroller-index/151754)

<div class="topic-metadata">

**Author:** [@Khaled\_mahmud\_K](https://www.ruby-forum.com/u/Khaled_mahmud_K)\
**Replies:** 3\
**Last updated:** [October 26, 2008, 1:49pm UTC](https://www.ruby-forum.com/t/missingsourcefile-in-lookcontroller-index/151754 "2008-10-26T13:49:47Z")

</div>

Hi Friends, I am facing a problem, when I run a simple Ruby program on my browser, it shows me an error like “MissingSourceFile in LookController#index”. Infect, I made a controller named “Look”. When I type “http://…

---

## [Returning a variable to before\_filter](https://www.ruby-forum.com/t/returning-a-variable-to-before-filter/151804)

<div class="topic-metadata">

**Author:** [@ami](https://www.ruby-forum.com/u/ami)\
**Replies:** 1\
**Last updated:** [October 26, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/returning-a-variable-to-before-filter/151804 "2008-10-26T13:36:53Z")

</div>

I know its probably doesnt sound right, but I am trying to call a before\_filter method that will check whats the user role and then based on that return a string / hash / array to the before\_filter something like this…

---

## [Update action | NoMethodError | nil.to\_sym](https://www.ruby-forum.com/t/update-action-nomethoderror-nil-to-sym/151792)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 2\
**Last updated:** [October 26, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/update-action-nomethoderror-nil-to-sym/151792 "2008-10-26T13:06:26Z")

</div>

Ok, totally no reason why I’m getting an error in this model update and no other. HELP! CONTROLLER: GET /employees/1/edit def edit @employee = Employees.find(params\[:id\]) end VIEW: Edit Employee \<%= error\_messag…

---

## [Use Prawn to generate pdf](https://www.ruby-forum.com/t/use-prawn-to-generate-pdf/151821)

<div class="topic-metadata">

**Author:** [@Guoyou\_J](https://www.ruby-forum.com/u/Guoyou_J)\
**Replies:** 2\
**Last updated:** [October 26, 2008, 11:47am UTC](https://www.ruby-forum.com/t/use-prawn-to-generate-pdf/151821 "2008-10-26T11:47:58Z")

</div>

Hello: when i use Prawn to generate pdf file for download, i got a blank pdf file, can someone tell me why? require ‘prawn’ class DownloadController \< ApplicationController def download\_pdf send\_data(generate\_pdf,…

---

## [Migration is setting order incorrectly 2088....\_create\_user.rb instead of 001\_create\_user.rb](https://www.ruby-forum.com/t/migration-is-setting-order-incorrectly-2088-create-user-rb-instead-of-001-create-user-rb/151816)

<div class="topic-metadata">

**Author:** [@Wes\_D](https://www.ruby-forum.com/u/Wes_D)\
**Replies:** 2\
**Last updated:** [October 26, 2008, 11:39am UTC](https://www.ruby-forum.com/t/migration-is-setting-order-incorrectly-2088-create-user-rb-instead-of-001-create-user-rb/151816 "2008-10-26T11:39:46Z")

</div>

I am having a problem trying to fix this situation. When I create a new model the migration starts at something like 2086748394485\_create\_user.rb instead of 001\_create\_user.rb. I have been searching for hours trying t…

---

## [\[Help\] How to render or replace a partial page having \<script\> tag?](https://www.ruby-forum.com/t/help-how-to-render-or-replace-a-partial-page-having-script-tag/151758)

<div class="topic-metadata">

**Author:** [@boblu](https://www.ruby-forum.com/u/boblu)\
**Replies:** 6\
**Last updated:** [October 26, 2008, 5:58am UTC](https://www.ruby-forum.com/t/help-how-to-render-or-replace-a-partial-page-having-script-tag/151758 "2008-10-26T05:58:50Z")

</div>

My problem is quite complicated. In my project, I have to use static However, the section above is not static, I have to write a helper to dynamically generate it. so it becomes to \<%= generate\_tree\_view(:id=\>…

---

## [How to make a private attributes in STI?](https://www.ruby-forum.com/t/how-to-make-a-private-attributes-in-sti/151785)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 1\
**Last updated:** [October 26, 2008, 3:42am UTC](https://www.ruby-forum.com/t/how-to-make-a-private-attributes-in-sti/151785 "2008-10-26T03:42:25Z")

</div>

people table like this id int not null auto\_increment, type varchar not null /\* common attributes \*/ name varchar not null, email varchar not null, /\* attributes for type=Customer \*/ balance decimal(10,2), /\* at…

---

## [Routing of result not clear in ActionMailer](https://www.ruby-forum.com/t/routing-of-result-not-clear-in-actionmailer/151791)

<div class="topic-metadata">

**Author:** [@cleca](https://www.ruby-forum.com/u/cleca)\
**Replies:** 7\
**Last updated:** [October 25, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/routing-of-result-not-clear-in-actionmailer/151791 "2008-10-25T21:28:28Z")

</div>

Dear all, I am trying to understand the following behaviour of the ActionMailer in Rails 2. I have an emailer\_controller.rb class EmailerController \< ApplicationController def send\_mail Emailer::deliver\_contact\_ema…

---

## [Sending emails in the background](https://www.ruby-forum.com/t/sending-emails-in-the-background/151766)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 1\
**Last updated:** [October 25, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/sending-emails-in-the-background/151766 "2008-10-25T20:45:43Z")

</div>

Hello, Part of my application sends emails to many users notifying them with new post. For some reason it takes a while to send the emails, I guess because it’s locating and sending to the mail server. I would like to …

---

## [Action profiling](https://www.ruby-forum.com/t/action-profiling/151381)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 4\
**Last updated:** [October 25, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/action-profiling/151381 "2008-10-25T19:57:26Z")

</div>

Hi, I am currently in my benchmarking cycle. I already use rawk to spot the action that take the most time and could be worked on a little bit. But inside each action, which profiling tool do you use? I watched Ryan …

---

## [How to get root path with link\_to?](https://www.ruby-forum.com/t/how-to-get-root-path-with-link-to/151726)

<div class="topic-metadata">

**Author:** [@guillaume](https://www.ruby-forum.com/u/guillaume)\
**Replies:** 3\
**Last updated:** [October 25, 2008, 7:23pm UTC](https://www.ruby-forum.com/t/how-to-get-root-path-with-link-to/151726 "2008-10-25T19:23:05Z")

</div>

Hi, I would like to get the root path of my website using link\_to in a view… (for example : http://www.mywebsite/controller/action/id) how is that possible ? (i do need it, because i use the generated code in the vie…

---

## [Composing several named\_scopes into another](https://www.ruby-forum.com/t/composing-several-named-scopes-into-another/151769)

<div class="topic-metadata">

**Author:** [@kipcole9](https://www.ruby-forum.com/u/kipcole9)\
**Replies:** 1\
**Last updated:** [October 25, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/composing-several-named-scopes-into-another/151769 "2008-10-25T18:41:47Z")

</div>

I have several named scopes in my app. Some patterns are used commonly. For example: Article.published\_in(publication).published.viewable\_by(current\_user).included\_in\_index Since this pattern is repeated, I’d like t…

---

## [Error installing gem](https://www.ruby-forum.com/t/error-installing-gem/151788)

<div class="topic-metadata">

**Author:** [@raju\_k](https://www.ruby-forum.com/u/raju_k)\
**Replies:** 0\
**Last updated:** [October 25, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/error-installing-gem/151788 "2008-10-25T18:38:39Z")

</div>

Hi, I am getting the following error while installing the gems… /usr/local/lib/site\_ruby/1.8/rubygems.rb:272:in \`initialize’: wrong number of arguments (1 for 0) (ArgumentError) root@raju-laptop:/home/raju/workspace#…

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

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