# Rails

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

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

---

## [How to use Twitter4R](https://www.ruby-forum.com/t/how-to-use-twitter4r/180305)

<div class="topic-metadata">

**Author:** [@sams](https://www.ruby-forum.com/u/sams)\
**Replies:** 2\
**Last updated:** [December 17, 2009, 5:22am UTC](https://www.ruby-forum.com/t/how-to-use-twitter4r/180305 "2009-12-17T05:22:20Z")

</div>

Hi all, well i already install the gem but i dont know how to use it. I need to change my twitter status everytime i change an event on my page

---

## [Rails 2.3.5 error\_messages\_for with object array](https://www.ruby-forum.com/t/rails-2-3-5-error-messages-for-with-object-array/180300)

<div class="topic-metadata">

**Author:** [@bill](https://www.ruby-forum.com/u/bill)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/rails-2-3-5-error-messages-for-with-object-array/180300 "2009-12-16T23:07:20Z")

</div>

Though I understand there was a problem with nested attributes and error\_messages\_for in Rails 2.3.4, this works fine for me, even if one of the objects is missing: error\_messages\_for(:object=\>\[@order, @order.items, @…

---

## [Strange Error](https://www.ruby-forum.com/t/strange-error/180243)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 7\
**Last updated:** [December 16, 2009, 5:08pm UTC](https://www.ruby-forum.com/t/strange-error/180243 "2009-12-16T17:08:30Z")

</div>

My local version of a show page mirrors a live version. Here is a piece of sample code that is the potential trouble causer: \<%= link\_to\_function (scale\_image\_tag(@portfolio.picture1, :width =\> 101, :height =\> 75), :o…

---

## [Rails development without an open port?](https://www.ruby-forum.com/t/rails-development-without-an-open-port/127258)

<div class="topic-metadata">

**Author:** [@csci\_student](https://www.ruby-forum.com/u/csci_student)\
**Replies:** 6\
**Last updated:** [December 16, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/rails-development-without-an-open-port/127258 "2009-12-16T16:59:25Z")

</div>

I wish to port an old web app over to Rails but I’m running into “political” issues. The host of the server I have access to refuses to open a port for me claiming that an error in a Rails application could bring down…

---

## [How do I base and IF off of a Nil array object](https://www.ruby-forum.com/t/how-do-i-base-and-if-off-of-a-nil-array-object/180211)

<div class="topic-metadata">

**Author:** [@stilgar71](https://www.ruby-forum.com/u/stilgar71)\
**Replies:** 5\
**Last updated:** [December 16, 2009, 3:19pm UTC](https://www.ruby-forum.com/t/how-do-i-base-and-if-off-of-a-nil-array-object/180211 "2009-12-16T15:19:43Z")

</div>

First please excuse the crudeness of my code but I need to understand how this works. This is code in a controller looking to output to a view. I have selected all the tasks from my module based on active status. In …

---

## [Rails console: How to execute a method](https://www.ruby-forum.com/t/rails-console-how-to-execute-a-method/180278)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 2\
**Last updated:** [December 16, 2009, 3:01pm UTC](https://www.ruby-forum.com/t/rails-console-how-to-execute-a-method/180278 "2009-12-16T15:01:49Z")

</div>

Hi there, I need to execute a method in the Rails console (in prod mode). I tried like this: My\_whateverController.whatevermethod But it gave me a: NoMethodError: undefined method \`whatevermethod’ for My\_whatev…

---

## [Passing Array](https://www.ruby-forum.com/t/passing-array/180267)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [December 16, 2009, 12:52pm UTC](https://www.ruby-forum.com/t/passing-array/180267 "2009-12-16T12:52:27Z")

</div>

I want to pass array of items to controller method @users = User.find(:all) \<%=link\_to “Generete”,:action =\> “generate”,:users =\> @users%\> but the above code is not working… how i should do it… any helps pls

---

## [Find from helper](https://www.ruby-forum.com/t/find-from-helper/180279)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/find-from-helper/180279 "2009-12-16T12:15:02Z")

</div>

You can perform an Active Record find() from a helper. I use it to find content for pages, like a cms. Mostly one but sometimes for two or three areas in the page view so it’s very basic. In this way I make it very si…

---

## ["authlogic-2.0.13" giving problem for login on production](https://www.ruby-forum.com/t/authlogic-2-0-13-giving-problem-for-login-on-production/180277)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 0\
**Last updated:** [December 16, 2009, 11:42am UTC](https://www.ruby-forum.com/t/authlogic-2-0-13-giving-problem-for-login-on-production/180277 "2009-12-16T11:42:31Z")

</div>

Hi, I am using “authlogic-2.0.13” for user authentication. It is working fine on my development machine, but on production it is not working. I have written a code like this in “user\_session\_controller.rb”:- def cre…

---

## [To learn JQuery](https://www.ruby-forum.com/t/to-learn-jquery/180227)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [December 16, 2009, 5:36am UTC](https://www.ruby-forum.com/t/to-learn-jquery/180227 "2009-12-16T05:36:02Z")

</div>

Hi Could anybody please tell a good resource to learn JQuery and use it in rails? Thanks in advance Sijo

---

## [Linking two belongs\_to associations through a common class](https://www.ruby-forum.com/t/linking-two-belongs-to-associations-through-a-common-class/180216)

<div class="topic-metadata">

**Author:** [@toddq](https://www.ruby-forum.com/u/toddq)\
**Replies:** 2\
**Last updated:** [December 15, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/linking-two-belongs-to-associations-through-a-common-class/180216 "2009-12-15T18:27:53Z")

</div>

I’m new and I just trying to figure out something about associations. The following ruby code works but does not work in my actual rails application. Am I doing something wrong or is there a reason why I need to alwa…

---

## [Clever ways of dealing with machine tags](https://www.ruby-forum.com/t/clever-ways-of-dealing-with-machine-tags/180241)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [December 15, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/clever-ways-of-dealing-with-machine-tags/180241 "2009-12-15T18:19:39Z")

</div>

Hey all I’m using acts\_as\_taggable\_on\_steroids. I’m about to add some methods for dealing with machine tags, and wondered if there was already some received wisdom (or even code) for doing this sort of thing. For ex…

---

## [Associations](https://www.ruby-forum.com/t/associations/180236)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 1\
**Last updated:** [December 15, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/associations/180236 "2009-12-15T16:20:53Z")

</div>

Wondering if anyone can help me with a few database tables I need associating properly? I have 2 tables. ‘adam\_tasks’ and ‘adam\_task\_comments’. adam\_task.rb: class AdamTask \< ActiveRecord::Base belongs\_to :owner, …

---

## [Modifying Rails load paths in the Rails::Configuration block](https://www.ruby-forum.com/t/modifying-rails-load-paths-in-the-rails-configuration-block/180240)

<div class="topic-metadata">

**Author:** [@nlownes](https://www.ruby-forum.com/u/nlownes)\
**Replies:** 0\
**Last updated:** [December 15, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/modifying-rails-load-paths-in-the-rails-configuration-block/180240 "2009-12-15T15:46:09Z")

</div>

Hey guys, I’m trying to figure out how to have Rails NOT load the root models and controllers at app/models and app/controllers at boot. I’ve tried setting config.load\_paths (with config being the Rails::Configuratio…

---

## [Correction ages in database](https://www.ruby-forum.com/t/correction-ages-in-database/180229)

<div class="topic-metadata">

**Author:** [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Replies:** 1\
**Last updated:** [December 15, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/correction-ages-in-database/180229 "2009-12-15T14:47:19Z")

</div>

hi all, I want to make a rake task. It contains birthday\_year as varchar column and birthday\_date as varchar. And it should calculate age as int column I am selecting users from database like this, @users = Use…

---

## [CKeditor synergy with RoR?](https://www.ruby-forum.com/t/ckeditor-synergy-with-ror/180111)

<div class="topic-metadata">

**Author:** [@bct](https://www.ruby-forum.com/u/bct)\
**Replies:** 5\
**Last updated:** [December 15, 2009, 2:06am UTC](https://www.ruby-forum.com/t/ckeditor-synergy-with-ror/180111 "2009-12-15T02:06:04Z")

</div>

Has anyone used CKeditor with RoR (not the pervious release FCKeditor, but hte new platform)? Any gotchas? I read up a fair chunk of info on CKeditor vs. TinyMCE, and I am leaning towards CKeditor, but if you want to…

---

## [Script/server not working](https://www.ruby-forum.com/t/script-server-not-working/180172)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 5\
**Last updated:** [December 15, 2009, 12:17am UTC](https://www.ruby-forum.com/t/script-server-not-working/180172 "2009-12-15T00:17:06Z")

</div>

when I run this command, the cursor hangs on the line after I input. When I control c to interrupt, this is what prints: $ script/server ^C/Users/john\_t\_krueger/.gem/ruby/1.8/gems/mongrel-1.1.5/lib/mongrel/gems.rb:8:i…

---

## [How to add a helper in a functional test](https://www.ruby-forum.com/t/how-to-add-a-helper-in-a-functional-test/180210)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [December 14, 2009, 10:50pm UTC](https://www.ruby-forum.com/t/how-to-add-a-helper-in-a-functional-test/180210 "2009-12-14T22:50:16Z")

</div>

Hi, I’m struggling a bit in testing some ajax calls. My problem is that I don’t know how to include a helper in a functional TestCase class. Does anyone know how to do that? Thanks

---

## [Understanding methods](https://www.ruby-forum.com/t/understanding-methods/180202)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 8\
**Last updated:** [December 14, 2009, 7:52pm UTC](https://www.ruby-forum.com/t/understanding-methods/180202 "2009-12-14T19:52:33Z")

</div>

Hi there, I am new to Ruby and to Rails and am having some trouble understanding when a method has been defined or not. My current understanding, and I am not sure if I am correct, is that methods are defined only for…

---

## [Records in Array](https://www.ruby-forum.com/t/records-in-array/180191)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 6\
**Last updated:** [December 14, 2009, 7:17pm UTC](https://www.ruby-forum.com/t/records-in-array/180191 "2009-12-14T19:17:02Z")

</div>

I have a back end admin system for a music library I’m making. I’ve atomised my data into 3 tables: Artists, Albums and Songs. They all have appropriate associations. In ‘app\\views\\artist\_admin\\list.html.erb’ I have t…

---

## [Have own hosting or go with Amazon?](https://www.ruby-forum.com/t/have-own-hosting-or-go-with-amazon/180205)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [December 14, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/have-own-hosting-or-go-with-amazon/180205 "2009-12-14T19:14:51Z")

</div>

Hi, I want to create a site that is mostly API Provider and nothing on the website interfacde. There will be approximately 20 millions of records and it will be query heavy site. I want it to scale quickly based on d…

---

## [Rails very newbie question - setting the rails working mode](https://www.ruby-forum.com/t/rails-very-newbie-question-setting-the-rails-working-mode/180175)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 7\
**Last updated:** [December 14, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/rails-very-newbie-question-setting-the-rails-working-mode/180175 "2009-12-14T19:00:31Z")

</div>

Hi all, I am just starting with Ruby on Rails. I bought “The Rails Way” by Obie F. and just finished reading the first chapter, but there’s something I didn’t quite understand: how so set the desired mode (RAILS\_ENV…

---

## [No action responded to create : Not asking for create!](https://www.ruby-forum.com/t/no-action-responded-to-create-not-asking-for-create/180201)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 2\
**Last updated:** [December 14, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/no-action-responded-to-create-not-asking-for-create/180201 "2009-12-14T18:05:17Z")

</div>

This is my bold attempt at creating something -without- the ‘generate’ script. No scaffold, just barebone man work! Of course, it breaks. Let’s see how far I can push the conversation before I can’t answer my own ques…

---

## [Fcgi timeout](https://www.ruby-forum.com/t/fcgi-timeout/180133)

<div class="topic-metadata">

**Author:** [@vetrivel](https://www.ruby-forum.com/u/vetrivel)\
**Replies:** 2\
**Last updated:** [December 14, 2009, 4:35pm UTC](https://www.ruby-forum.com/t/fcgi-timeout/180133 "2009-12-14T16:35:03Z")

</div>

How to increase the fcgi timeout . my action takes more than 30 seconds , to bring the response from my database . Afetr reaching 30 seconds , apache2 kill my fcgi process and I am getting application error in my frie…

---

## [Reloading page fails by browser-cache (development)](https://www.ruby-forum.com/t/reloading-page-fails-by-browser-cache-development/180197)

<div class="topic-metadata">

**Author:** [@coldie](https://www.ruby-forum.com/u/coldie)\
**Replies:** 1\
**Last updated:** [December 14, 2009, 3:10pm UTC](https://www.ruby-forum.com/t/reloading-page-fails-by-browser-cache-development/180197 "2009-12-14T15:10:29Z")

</div>

Hi there, i’m new to Rails 2.3.4 (always used 2.0.2) but i mentioned there are a few changes in relation to the environment. If I check the ‘RAILS\_ENV’, ‘development’ is displayed. I always thought, that caching is d…

---

## [.each looping too many times](https://www.ruby-forum.com/t/each-looping-too-many-times/180185)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 0\
**Last updated:** [December 14, 2009, 9:39am UTC](https://www.ruby-forum.com/t/each-looping-too-many-times/180185 "2009-12-14T09:39:01Z")

</div>

logger.debug("@@@@ - line item count is #{order.line\_items.count}") order.line\_items.each\_with\_index do |line\_item, index| logger.debug("@@@@ - line item") request.memo += “#{line\_item.order\_quantity} x #{line\_item.p…

---

## [How to delete a uploaded file with file\_column plugin?](https://www.ruby-forum.com/t/how-to-delete-a-uploaded-file-with-file-column-plugin/55980)

<div class="topic-metadata">

**Author:** [@tnitsche](https://www.ruby-forum.com/u/tnitsche)\
**Replies:** 11\
**Last updated:** [December 14, 2009, 6:42am UTC](https://www.ruby-forum.com/t/how-to-delete-a-uploaded-file-with-file-column-plugin/55980 "2009-12-14T06:42:32Z")

</div>

Hi, sounds somehow stupid, but I can’t get rid of my files that I uploaded into my application via the file\_column plugin. Any suggestions? Cheers Thomas

---

## [One Request but Double Processing](https://www.ruby-forum.com/t/one-request-but-double-processing/180134)

<div class="topic-metadata">

**Author:** [@gkreimer](https://www.ruby-forum.com/u/gkreimer)\
**Replies:** 3\
**Last updated:** [December 13, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/one-request-but-double-processing/180134 "2009-12-13T14:53:20Z")

</div>

Hi, one request from the browser results in double processing. If I debug, the corresponding controller action will be called twice. So that behavior isn’t a log mistake. Any ideas? Here is the log file output. P…

---

## [When does in a redirection appear the object memory address?](https://www.ruby-forum.com/t/when-does-in-a-redirection-appear-the-object-memory-address/180153)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 0\
**Last updated:** [December 13, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/when-does-in-a-redirection-appear-the-object-memory-address/180153 "2009-12-13T14:21:48Z")

</div>

Hi, I’m using this assertion in a functional test: assert\_redirected\_to facturas\_path(assigns(:factura)) and I’m getting this error: Failure: test\_actualizar\_plazos\_factura(FacturasControllerTest) \[/test/functiona…

---

## [Sortable.serialize and Rails](https://www.ruby-forum.com/t/sortable-serialize-and-rails/180147)

<div class="topic-metadata">

**Author:** [@jonny\_noog](https://www.ruby-forum.com/u/jonny_noog)\
**Replies:** 0\
**Last updated:** [December 13, 2009, 10:41am UTC](https://www.ruby-forum.com/t/sortable-serialize-and-rails/180147 "2009-12-13T10:41:59Z")

</div>

Hello, I am trying to get a UI in a Rails application working where I have a number of unordered lists being given sortable behaviour using Scriptaculous Sortable. Everything is working well except I’m having a littl…

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

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