# Rails

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

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

---

## [\[JOBS\] Ruby developer](https://www.ruby-forum.com/t/jobs-ruby-developer/170380)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 16, 2009, 8:30pm UTC](https://www.ruby-forum.com/t/jobs-ruby-developer/170380 "2009-06-16T20:30:21Z")

</div>

Large E-commerce firm is currently seeking a Ruby on Rails developer to join their team of 7. You will be involved in the full life cycle of their ecommerce site as well as a new project they are launching. The ideal …

---

## [Newbie question](https://www.ruby-forum.com/t/newbie-question/170366)

<div class="topic-metadata">

**Author:** [@Heitor\_Faria](https://www.ruby-forum.com/u/Heitor_Faria)\
**Replies:** 8\
**Last updated:** [June 16, 2009, 8:06pm UTC](https://www.ruby-forum.com/t/newbie-question/170366 "2009-06-16T20:06:48Z")

</div>

Running this: p005methods.rb gets and chomp puts “In which city do you stay?” STDOUT.flush city = gets.chomp puts "The city is " + city I get this: ruby p004stringusage.rb In which city do you stay? p004stringus…

---

## [Problem with calendar\_date\_select](https://www.ruby-forum.com/t/problem-with-calendar-date-select/170373)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 2\
**Last updated:** [June 16, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/problem-with-calendar-date-select/170373 "2009-06-16T19:59:40Z")

</div>

Hi all, IÂ´m using the calendar\_date\_select plugin to display date fields in a more fashion way.When executing in Webrick everything goes fine,but if I try to deploy my app in Tomcat iÂ´m facing the following issue: I…

---

## [Calling a self controller path on method from view](https://www.ruby-forum.com/t/calling-a-self-controller-path-on-method-from-view/170330)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 3\
**Last updated:** [June 16, 2009, 5:52pm UTC](https://www.ruby-forum.com/t/calling-a-self-controller-path-on-method-from-view/170330 "2009-06-16T17:52:06Z")

</div>

I’ve created a helper for dealing with tables called TableHelper. I have a method to deal with sorting asc or desc from within columns. They involve images and some other transitions. Here’s the code: def sort\_colum…

---

## [Error during running demo.rb file of Service Merchant](https://www.ruby-forum.com/t/error-during-running-demo-rb-file-of-service-merchant/170338)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 1\
**Last updated:** [June 16, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/error-during-running-demo-rb-file-of-service-merchant/170338 "2009-06-16T17:47:07Z")

</div>

Hello all, I’m trying to use service merchant plugin in my application. i installed plugin in vendor/plugins dir. I am using mysql database. so i changed database configuration in two files of service\_merchant 1)“ve…

---

## [Document referer](https://www.ruby-forum.com/t/document-referer/170367)

<div class="topic-metadata">

**Author:** [@SteveCox](https://www.ruby-forum.com/u/SteveCox)\
**Replies:** 0\
**Last updated:** [June 16, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/document-referer/170367 "2009-06-16T17:42:52Z")

</div>

Hi, I want to allow only a handful of refering sites to access parts of my application. I understand that in rails I can use request.referer which does identify the refering site correctly however is it possible for t…

---

## [RESTful form\_for generation](https://www.ruby-forum.com/t/restful-form-for-generation/170310)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [June 16, 2009, 5:18pm UTC](https://www.ruby-forum.com/t/restful-form-for-generation/170310 "2009-06-16T17:18:32Z")

</div>

In my view I wrote the following : \<% form\_for \[@academy, @ecourse \], :url =\> { :action =\> “update” }, :html =\> {:method =\> :put} do |f| %\> but it’s generating the html code : ..... rather than action : /academies/…

---

## [Want to directly access MODEL from VIEW. Can;t :(](https://www.ruby-forum.com/t/want-to-directly-access-model-from-view-can-t/170332)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 14\
**Last updated:** [June 16, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/want-to-directly-access-model-from-view-can-t/170332 "2009-06-16T17:12:53Z")

</div>

Hi I have a model called navbar. It does not have a view or a controller defined. create\_table :navbars do |t| t.string :name t.string :display\_name t.string :url t.string :group\_by\_module t.boolean :default\_link …

---

## [How to send build options to 'rake gems:build'?](https://www.ruby-forum.com/t/how-to-send-build-options-to-rake-gems-build/170361)

<div class="topic-metadata">

**Author:** [@Jason\_Coffin](https://www.ruby-forum.com/u/Jason_Coffin)\
**Replies:** 0\
**Last updated:** [June 16, 2009, 4:42pm UTC](https://www.ruby-forum.com/t/how-to-send-build-options-to-rake-gems-build/170361 "2009-06-16T16:42:30Z")

</div>

Greetings, I need to give the following options to a mysql gem in my vendor/gems folder (created with ‘rake gems:unpack’): –with-mysql-dir=/usr/local/mysql How can I pass that option along when doing ‘rake gems:build…

---

## [WHY parent.collection.eql?(parent.collection) =\> false?](https://www.ruby-forum.com/t/why-parent-collection-eql-parent-collection-false/170358)

<div class="topic-metadata">

**Author:** [@itkin](https://www.ruby-forum.com/u/itkin)\
**Replies:** 1\
**Last updated:** [June 16, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/why-parent-collection-eql-parent-collection-false/170358 "2009-06-16T16:03:39Z")

</div>

HEllo In other word how to make the ruby eql? method work on arrays composed of AR instance objects ?? Itkin

---

## [Access session secret key](https://www.ruby-forum.com/t/access-session-secret-key/170356)

<div class="topic-metadata">

**Author:** [@PanosJee](https://www.ruby-forum.com/u/PanosJee)\
**Replies:** 0\
**Last updated:** [June 16, 2009, 3:35pm UTC](https://www.ruby-forum.com/t/access-session-secret-key/170356 "2009-06-16T15:35:15Z")

</div>

Hi everyone, is there any way i can get the session secret key from within a plugin or any controller?

---

## [Prompt option not available in rails date helper](https://www.ruby-forum.com/t/prompt-option-not-available-in-rails-date-helper/170352)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 0\
**Last updated:** [June 16, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/prompt-option-not-available-in-rails-date-helper/170352 "2009-06-16T15:08:04Z")

</div>

Hi prompt option is not available in rails 2.2.but in api.rubyonrails it hazs mentioned it is there.But its not working. date\_select(“post”, “written\_on”, :prompt=\>{:day=\>‘Select day’, :month=\>‘Select month’, :year=\>‘…

---

## [How to improve a plugin?](https://www.ruby-forum.com/t/how-to-improve-a-plugin/170346)

<div class="topic-metadata">

**Author:** [@Vojto](https://www.ruby-forum.com/u/Vojto)\
**Replies:** 13\
**Last updated:** [June 16, 2009, 2:19pm UTC](https://www.ruby-forum.com/t/how-to-improve-a-plugin/170346 "2009-06-16T14:19:17Z")

</div>

Hello, I want to add some functionality to a plugin. The original plugin extends ActiveRecord by including ‘ActMethods’ … I’d like to add some methods to this ‘ActMethods’ module. I tried just redefining ActMethods, …

---

## [Need help with eway pay,ent gateway](https://www.ruby-forum.com/t/need-help-with-eway-pay-ent-gateway/170342)

<div class="topic-metadata">

**Author:** [@shree](https://www.ruby-forum.com/u/shree)\
**Replies:** 1\
**Last updated:** [June 16, 2009, 11:36am UTC](https://www.ruby-forum.com/t/need-help-with-eway-pay-ent-gateway/170342 "2009-06-16T11:36:28Z")

</div>

Hi, I am developing a shopping cart which includes implementation of EWAY payment gateway, all the code I have done as per ( http://activemerchant.rubyforge.org/classes/ActiveMerchant/Billing/EwayGateway.html) page, …

---

## [Drag and Drop without bugging the server...?](https://www.ruby-forum.com/t/drag-and-drop-without-bugging-the-server/170327)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [June 16, 2009, 11:35am UTC](https://www.ruby-forum.com/t/drag-and-drop-without-bugging-the-server/170327 "2009-06-16T11:35:10Z")

</div>

Hi All, Is there an equivalent of “link\_to\_function” (instead of “:action”) when using “draggable\_element”? Basically I need to drag and drop some items and have it reflected locally without contacting the server. M…

---

## [TemplateError for second-level partial during AJAX update](https://www.ruby-forum.com/t/templateerror-for-second-level-partial-during-ajax-update/170336)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 5\
**Last updated:** [June 16, 2009, 11:31am UTC](https://www.ruby-forum.com/t/templateerror-for-second-level-partial-during-ajax-update/170336 "2009-06-16T11:31:25Z")

</div>

Hi All, Could someone please explain to me why I’m getting an ActionView::TemplateError when I try to use AJAX to update the interface while using the following code: \<div id="building\[\<%=building.id%\>\]\[controls\]"\> …

---

## [Active record callback after\_find doesnot exist](https://www.ruby-forum.com/t/active-record-callback-after-find-doesnot-exist/170340)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 1\
**Last updated:** [June 16, 2009, 10:42am UTC](https://www.ruby-forum.com/t/active-record-callback-after-find-doesnot-exist/170340 "2009-06-16T10:42:44Z")

</div>

I have a class in which the data is encrypted and stored for all fields. Whenever the record is loaded from database, the data should be decrypted. If there was a after\_find callback, we could have done the decryptio…

---

## [Automatic :format suffixing in helper methods?](https://www.ruby-forum.com/t/automatic-format-suffixing-in-helper-methods/170341)

<div class="topic-metadata">

**Author:** [@kazuyoshi\_tlacaelel](https://www.ruby-forum.com/u/kazuyoshi_tlacaelel)\
**Replies:** 0\
**Last updated:** [June 16, 2009, 10:34am UTC](https://www.ruby-forum.com/t/automatic-format-suffixing-in-helper-methods/170341 "2009-06-16T10:34:46Z")

</div>

Is there a way to automatically prefix a format in all helper methods? like: link\_to ? So if I had an xml all links would probably be /users/1 and that is fine but what happens if I have a resource for mobiles like /…

---

## [Send\_file resets my session cookies!](https://www.ruby-forum.com/t/send-file-resets-my-session-cookies/170243)

<div class="topic-metadata">

**Author:** [@mario](https://www.ruby-forum.com/u/mario)\
**Replies:** 18\
**Last updated:** [June 16, 2009, 10:20am UTC](https://www.ruby-forum.com/t/send-file-resets-my-session-cookies/170243 "2009-06-16T10:20:48Z")

</div>

I’m experiencing a serious problem where the responses of my GET requests keep reseting my session cookie. Basically my initial request to www.vidmap.de sets a session cookie on variable \_vm\_session\_prod which is unde…

---

## [BME-cat importer to db](https://www.ruby-forum.com/t/bme-cat-importer-to-db/170335)

<div class="topic-metadata">

**Author:** [@ericrchr](https://www.ruby-forum.com/u/ericrchr)\
**Replies:** 0\
**Last updated:** [June 16, 2009, 7:06am UTC](https://www.ruby-forum.com/t/bme-cat-importer-to-db/170335 "2009-06-16T07:06:49Z")

</div>

It’s the first project for me on ruby on rails. I want to write a XML importer to database. But i have several question 1)for my purpose of creating importer should I have an example file with full-filled XML-data? (i…

---

## [Production vs Development I need to make different connections and call different code](https://www.ruby-forum.com/t/production-vs-development-i-need-to-make-different-connections-and-call-different-code/170300)

<div class="topic-metadata">

**Author:** [@erik](https://www.ruby-forum.com/u/erik)\
**Replies:** 1\
**Last updated:** [June 16, 2009, 2:14am UTC](https://www.ruby-forum.com/t/production-vs-development-i-need-to-make-different-connections-and-call-different-code/170300 "2009-06-16T02:14:36Z")

</div>

Bare with me on this one… We have a lot of read only data. And it is accessed a lot more then the user created data at this stage. The datbase structure is (on production): production\_user db 2 production\_read\_onl…

---

## [Query the :limit =\> value back out of the schema](https://www.ruby-forum.com/t/query-the-limit-value-back-out-of-the-schema/170215)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 2\
**Last updated:** [June 16, 2009, 1:09am UTC](https://www.ruby-forum.com/t/query-the-limit-value-back-out-of-the-schema/170215 "2009-06-16T01:09:44Z")

</div>

Railsters: My evil colleagues could migrate the :limit=\> on an important string at any time. (Think Twitter’s infamous string :limit =\> 140.) I don’t want to guess that limit and hard-code it into the program; I wan…

---

## [Problem with send\_file & mod\_xsendfile: 1 byte file](https://www.ruby-forum.com/t/problem-with-send-file-mod-xsendfile-1-byte-file/170313)

<div class="topic-metadata">

**Author:** [@amedse](https://www.ruby-forum.com/u/amedse)\
**Replies:** 0\
**Last updated:** [June 15, 2009, 8:56pm UTC](https://www.ruby-forum.com/t/problem-with-send-file-mod-xsendfile-1-byte-file/170313 "2009-06-15T20:56:53Z")

</div>

Hi everyone, I’ve been installed mod\_xsendfile in my local computer under Apache 2.2, then I put the following lines in apache2.conf file: LoadModule xsendfile\_module “/usr/lib/apache2/modules/mod\_xsendfile.so” XSend…

---

## [String to model name in active record](https://www.ruby-forum.com/t/string-to-model-name-in-active-record/170306)

<div class="topic-metadata">

**Author:** [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Replies:** 2\
**Last updated:** [June 15, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/string-to-model-name-in-active-record/170306 "2009-06-15T20:27:43Z")

</div>

Hello, Is there is a simple way to convert string to model name? Thanks

---

## [Getting Started With JRuby](https://www.ruby-forum.com/t/getting-started-with-jruby/170312)

<div class="topic-metadata">

**Author:** [@sbinsider](https://www.ruby-forum.com/u/sbinsider)\
**Replies:** 0\
**Last updated:** [June 15, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/getting-started-with-jruby/170312 "2009-06-15T20:17:33Z")

</div>

Here is a guest post on Engine Y.'s blog from Charlie Nutter of the JRuby team on getting starting with JRuby - http://bit.ly/G4KZp

---

## [Unit test error: field ... doesn't have a default value](https://www.ruby-forum.com/t/unit-test-error-field-doesnt-have-a-default-value/170265)

<div class="topic-metadata">

**Author:** [@tivrfoa](https://www.ruby-forum.com/u/tivrfoa)\
**Replies:** 5\
**Last updated:** [June 15, 2009, 8:03pm UTC](https://www.ruby-forum.com/t/unit-test-error-field-doesnt-have-a-default-value/170265 "2009-06-15T20:03:17Z")

</div>

Hello! here is my unit test: require ‘test\_helper’ class UsuarioTest \< ActiveSupport::TestCase Replace this with your real tests. #test “the truth” do #assert true #end def test\_salvar usuario = Usuario.new asse…

---

## [RoR not responding via command line](https://www.ruby-forum.com/t/ror-not-responding-via-command-line/170304)

<div class="topic-metadata">

**Author:** [@rikki123s](https://www.ruby-forum.com/u/rikki123s)\
**Replies:** 4\
**Last updated:** [June 15, 2009, 8:00pm UTC](https://www.ruby-forum.com/t/ror-not-responding-via-command-line/170304 "2009-06-15T20:00:58Z")

</div>

Hey all, Now here’s the problem, it is probably something simple but this problem is preventing my productivity. I have installed RoR on my xp machine, and it is now installed, however, any ruby on rails commands are…

---

## [Writing to a remote SQL Server w/javascript](https://www.ruby-forum.com/t/writing-to-a-remote-sql-server-w-javascript/170309)

<div class="topic-metadata">

**Author:** [@naevity](https://www.ruby-forum.com/u/naevity)\
**Replies:** 2\
**Last updated:** [June 15, 2009, 7:58pm UTC](https://www.ruby-forum.com/t/writing-to-a-remote-sql-server-w-javascript/170309 "2009-06-15T19:58:36Z")

</div>

I’m working on a new project, and I’m having trouble wrapping my head around how I should structure this. I have a Ruby on Rails server that is hosting everything. I also have a few client machines, laptops and phone…

---

## [Help with Ruby Gems](https://www.ruby-forum.com/t/help-with-ruby-gems/170246)

<div class="topic-metadata">

**Author:** [@suelee](https://www.ruby-forum.com/u/suelee)\
**Replies:** 5\
**Last updated:** [June 15, 2009, 7:53pm UTC](https://www.ruby-forum.com/t/help-with-ruby-gems/170246 "2009-06-15T19:53:54Z")

</div>

Okay so I’m new to ruby and rails. This is probably a very easy question. So, I’m trying to run Webrick but it tells me that I need to install gems. This is what I keep getting: Macintosh:contactlist sue$ ruby script…

---

## [Splitting the user into user and user\_profile](https://www.ruby-forum.com/t/splitting-the-user-into-user-and-user-profile/170242)

<div class="topic-metadata">

**Author:** [@arnekolja](https://www.ruby-forum.com/u/arnekolja)\
**Replies:** 2\
**Last updated:** [June 15, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/splitting-the-user-into-user-and-user-profile/170242 "2009-06-15T19:33:11Z")

</div>

Hi there, I am totally new to Rails, so please forgive me that probably dumb question, but I am stuck with the constellation of having a user and a user\_profile model. The idea behind this is to have a user with only…

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

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