# Rails

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

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

---

## [Ajax problem](https://www.ruby-forum.com/t/ajax-problem/191886)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 10\
**Last updated:** [July 20, 2010, 1:20pm UTC](https://www.ruby-forum.com/t/ajax-problem/191886 "2010-07-20T13:20:20Z")

</div>

Hi i created an application which using ajax method, but unfortunately ma application is not working this is ma view page in which i used ajax. here on clickint the links it should replace the div…

---

## [Association count sorting](https://www.ruby-forum.com/t/association-count-sorting/191877)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 6\
**Last updated:** [July 20, 2010, 10:41am UTC](https://www.ruby-forum.com/t/association-count-sorting/191877 "2010-07-20T10:41:05Z")

</div>

I have 3 models GrandPa, Pa, Kid GrandPa =\> has\_many :pas Pa =\> has\_many kids When I list GrandPa I would like to present the following 1 - GrandPa\_Name 2 - List of Pas sorted by the number kids each pa has in desc…

---

## [Jruby or Ruby(1.9.1) with Rails for lots of Java Backends](https://www.ruby-forum.com/t/jruby-or-ruby-1-9-1-with-rails-for-lots-of-java-backends/191883)

<div class="topic-metadata">

**Author:** [@YoonSung\_Hong](https://www.ruby-forum.com/u/YoonSung_Hong)\
**Replies:** 1\
**Last updated:** [July 20, 2010, 10:01am UTC](https://www.ruby-forum.com/t/jruby-or-ruby-1-9-1-with-rails-for-lots-of-java-backends/191883 "2010-07-20T10:01:51Z")

</div>

Hello, I’m working on a project that requires a lot of web triggered java applications. For instance, when a user click a search button, I call java from Rails to do the heavy weight. Is it troublesome to call java a…

---

## [ActiveRecord override](https://www.ruby-forum.com/t/activerecord-override/191859)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 3\
**Last updated:** [July 20, 2010, 1:32am UTC](https://www.ruby-forum.com/t/activerecord-override/191859 "2010-07-20T01:32:37Z")

</div>

Would really appreciate it if someone could tell me why this is happening: I override ssn method of AR class so I can encrypt/decrypt to/from the db: class Person \< ActiveRecord::Base def ssn=(value) write\_attribut…

---

## [Add a member to a pre-existing resource-route?](https://www.ruby-forum.com/t/add-a-member-to-a-pre-existing-resource-route/191853)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 3\
**Last updated:** [July 19, 2010, 11:44pm UTC](https://www.ruby-forum.com/t/add-a-member-to-a-pre-existing-resource-route/191853 "2010-07-19T23:44:39Z")

</div>

Rails2. If a route has already been established with “map.resources”, is there any way I can add an additional member to it, without over-writing what’s already there? This comes up in two engines-style plugins inter…

---

## [All custom helper modules being made available to all controllers without a call to helper?](https://www.ruby-forum.com/t/all-custom-helper-modules-being-made-available-to-all-controllers-without-a-call-to-helper/191864)

<div class="topic-metadata">

**Author:** [@dizzyone](https://www.ruby-forum.com/u/dizzyone)\
**Replies:** 1\
**Last updated:** [July 19, 2010, 11:37pm UTC](https://www.ruby-forum.com/t/all-custom-helper-modules-being-made-available-to-all-controllers-without-a-call-to-helper/191864 "2010-07-19T23:37:18Z")

</div>

I have three different helper modules in my helpers directory (authentication\_helper.rb… etc). In my views and partials I have calls to them but application\_controller never directly calls the method #helper directly …

---

## [Re: Changing a model's database connection](https://www.ruby-forum.com/t/re-changing-a-models-database-connection/191855)

<div class="topic-metadata">

**Author:** [@gracei](https://www.ruby-forum.com/u/gracei)\
**Replies:** 1\
**Last updated:** [July 19, 2010, 11:22pm UTC](https://www.ruby-forum.com/t/re-changing-a-models-database-connection/191855 "2010-07-19T23:22:39Z")

</div>

Michaël wrote: I want to be able to set those models to use a database on a different server. … I’ve tried the following, but it doesn’t seem to have any effect: I do this for switching between a legacy db and a n…

---

## [What does this mean in the Rails installation command?](https://www.ruby-forum.com/t/what-does-this-mean-in-the-rails-installation-command/191835)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 3\
**Last updated:** [July 19, 2010, 10:18pm UTC](https://www.ruby-forum.com/t/what-does-this-mean-in-the-rails-installation-command/191835 "2010-07-19T22:18:15Z")

</div>

In the Rails guides, it shows thee following for installing Rails: gem install rails --pre What is “–pre”? Thanks.

---

## [Geokit app](https://www.ruby-forum.com/t/geokit-app/191808)

<div class="topic-metadata">

**Author:** [@oliver\_torres](https://www.ruby-forum.com/u/oliver_torres)\
**Replies:** 1\
**Last updated:** [July 19, 2010, 9:00pm UTC](https://www.ruby-forum.com/t/geokit-app/191808 "2010-07-19T21:00:41Z")

</div>

Newbie here :slight\_smile: So, a friend mentioned that geokit is the way to go if I want to make a simple location based app. I basically want to make a list of locations so the app should allow me to Create a locat…

---

## [Two fields for same](https://www.ruby-forum.com/t/two-fields-for-same/191834)

<div class="topic-metadata">

**Author:** [@Luciano\_S](https://www.ruby-forum.com/u/Luciano_S)\
**Replies:** 2\
**Last updated:** [July 19, 2010, 8:47pm UTC](https://www.ruby-forum.com/t/two-fields-for-same/191834 "2010-07-19T20:47:22Z")

</div>

hello guys, it’s possible pass two params in a GET request to the same location in the database? example: two fields in view: text\_field: persons,: Birthday: id =\> one text\_field: persons,: Birthday: id =\> two in…

---

## [Changing a model's database connection](https://www.ruby-forum.com/t/changing-a-models-database-connection/191849)

<div class="topic-metadata">

**Author:** [@MichaSSSSl](https://www.ruby-forum.com/u/MichaSSSSl)\
**Replies:** 4\
**Last updated:** [July 19, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/changing-a-models-database-connection/191849 "2010-07-19T20:43:23Z")

</div>

Hi, I’ve got a simple problem. I’ve got a collection of models, Customer, Product and Shop, and they’re all using the database configured for the ActiveRecord class. However, for one particular task – generating a re…

---

## [Sr. Web Application Developer (RoR) Career Opportunity in San Francisco!](https://www.ruby-forum.com/t/sr-web-application-developer-ror-career-opportunity-in-san-francisco/191848)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 19, 2010, 8:12pm UTC](https://www.ruby-forum.com/t/sr-web-application-developer-ror-career-opportunity-in-san-francisco/191848 "2010-07-19T20:12:21Z")

</div>

Title: Sr. Web Application Developer - San Francisco QUALIFICATIONS Candidates MUST have a background in Ruby-on-Rails (RoR); MUST use it for web application development not just creating web pages; NO interest in We…

---

## [Ruby on Rails template designs](https://www.ruby-forum.com/t/ruby-on-rails-template-designs/191758)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 8\
**Last updated:** [July 19, 2010, 8:10pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-template-designs/191758 "2010-07-19T20:10:33Z")

</div>

As you know, when you create a RoR application, you will have pages that need some design and added to more beauty. I just want to ask. Should I do HTML and CSS work here? Or, are there RoR templates out there that I …

---

## [XML parsing, block name with minus](https://www.ruby-forum.com/t/xml-parsing-block-name-with-minus/191820)

<div class="topic-metadata">

**Author:** [@Szymon\_PrzybySSSS\_S](https://www.ruby-forum.com/u/Szymon_PrzybySSSS_S)\
**Replies:** 2\
**Last updated:** [July 19, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/xml-parsing-block-name-with-minus/191820 "2010-07-19T20:05:46Z")

</div>

Hi! I’m trying to parse a XML document (MusicXML), I found that here something about it: http://railstips.org/blog/archives/2008/08/11/parsing-xml-with-ruby/ I chose Hpricot, but I have a problem: in XML document, w…

---

## [system("AcroRd32.exe ")](https://www.ruby-forum.com/t/system-acrord32-exe/191726)

<div class="topic-metadata">

**Author:** [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Replies:** 8\
**Last updated:** [July 19, 2010, 8:01pm UTC](https://www.ruby-forum.com/t/system-acrord32-exe/191726 "2010-07-19T20:01:59Z")

</div>

Hi, Is there a way to start Acrrobat reader on my local desktop by a ruby application running on the server by launching : system("AcroRd32.exe " ?

---

## [Bundle install](https://www.ruby-forum.com/t/bundle-install/191841)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 19, 2010, 7:22pm UTC](https://www.ruby-forum.com/t/bundle-install/191841 "2010-07-19T19:22:58Z")

</div>

What does the command: bundle install do? It seems also that it only works with Rails3? Thanks.

---

## [Protect from forgery for Rest destroy action?](https://www.ruby-forum.com/t/protect-from-forgery-for-rest-destroy-action/191843)

<div class="topic-metadata">

**Author:** [@chuckychuck](https://www.ruby-forum.com/u/chuckychuck)\
**Replies:** 0\
**Last updated:** [July 19, 2010, 6:51pm UTC](https://www.ruby-forum.com/t/protect-from-forgery-for-rest-destroy-action/191843 "2010-07-19T18:51:36Z")

</div>

Hi !! I’m reading the rails guides about security, i had a question about the forgery protection If we consider a standard Restful resource ( generated with scaffold for example ), the update and create actions are p…

---

## [Updated to Rails 3.0.0.beta4. Is it the problem?](https://www.ruby-forum.com/t/updated-to-rails-3-0-0-beta4-is-it-the-problem/191844)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 0\
**Last updated:** [July 19, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/updated-to-rails-3-0-0-beta4-is-it-the-problem/191844 "2010-07-19T18:45:51Z")

</div>

I have updated to Rails 3.0.0.beta4 I’m trying to install this plugin: There is a command I’m trying to run: rails generate devise:install But, I get the following: http://pastie.org/1050651 For example, in Rails 2.…

---

## [Does Nginx with Passenger actually work?](https://www.ruby-forum.com/t/does-nginx-with-passenger-actually-work/191837)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 14\
**Last updated:** [July 19, 2010, 6:41pm UTC](https://www.ruby-forum.com/t/does-nginx-with-passenger-actually-work/191837 "2010-07-19T18:41:37Z")

</div>

I’ve followed this tutorial http://www.modrails.com/videos/passenger\_nginx.mov. Should’t it work? It doesn’t on my Mac OS 10.6. The server is up and running but not my rails app. Are there any configurations you have…

---

## [Functional tests - setup and teardown](https://www.ruby-forum.com/t/functional-tests-setup-and-teardown/191781)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 6\
**Last updated:** [July 19, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/functional-tests-setup-and-teardown/191781 "2010-07-19T18:22:34Z")

</div>

Hi all, functional test help please, http://pastie.org/1049300 lines 5 to 8 simulate a login; all fine, but after line 56 I’d like to test the reverse that everything is blocked when the user is not logged in. So th…

---

## [Setting a root\_url](https://www.ruby-forum.com/t/setting-a-root-url/191828)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 6\
**Last updated:** [July 19, 2010, 5:46pm UTC](https://www.ruby-forum.com/t/setting-a-root-url/191828 "2010-07-19T17:46:34Z")

</div>

I know how to setup a roo\_url using map.root in “routes.rb”. The issue I’m currently having is as follows: I walking through this Rails cast regarding Authlogic: I decided that I make my map.root the “login” page, th…

---

## [Git on MAC OS X](https://www.ruby-forum.com/t/git-on-mac-os-x/191838)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 14\
**Last updated:** [July 19, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/git-on-mac-os-x/191838 "2010-07-19T17:43:38Z")

</div>

I know that this question may not be here, but think that most of you using RoR deal with Git. I run a MAC OS X 10.5.8, and want to install Git running on my machine. But, I didn’t find this version of my MAC OS X her…

---

## [Forking and integration tests](https://www.ruby-forum.com/t/forking-and-integration-tests/191842)

<div class="topic-metadata">

**Author:** [@mfb82](https://www.ruby-forum.com/u/mfb82)\
**Replies:** 0\
**Last updated:** [July 19, 2010, 5:40pm UTC](https://www.ruby-forum.com/t/forking-and-integration-tests/191842 "2010-07-19T17:40:04Z")

</div>

Hi All, I had a bug in one project, that data get duplicated in the DB due to multiple instances of the application (multiple thins) are accessing the DB at the same time … The typical mistake. Problem fixed. I just…

---

## [Rake db:create:all](https://www.ruby-forum.com/t/rake-dball/191591)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [July 19, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/rake-dball/191591 "2010-07-19T16:54:16Z")

</div>

This link: http://en.wikibooks.org/wiki/Ruby\_on\_Rails/ActiveRecord/Migrations describes rake db:create:all as follows: rake db:create\[:all\]: If :all not specified then create the database defined in config/database.y…

---

## [@user = User.new(params\[:user\])](https://www.ruby-forum.com/t/user-user-new-params-user/191786)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 3\
**Last updated:** [July 19, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/user-user-new-params-user/191786 "2010-07-19T16:52:20Z")

</div>

In the following tutorial: http://asciicasts.com/episodes/160-authlogic It has this in the controller: @user = User.new(params\[:user\]) I get that we are creating here a new object of User class. But, what is the :user…

---

## [Store file into mysql using ruby on rails](https://www.ruby-forum.com/t/store-file-into-mysql-using-ruby-on-rails/191831)

<div class="topic-metadata">

**Author:** [@prabhat4ever](https://www.ruby-forum.com/u/prabhat4ever)\
**Replies:** 3\
**Last updated:** [July 19, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/store-file-into-mysql-using-ruby-on-rails/191831 "2010-07-19T15:35:21Z")

</div>

Hi plz tell me how to upload a file into mysql table in Ruby On Rails … ? also tell me how to read bytes from a file & stores in a variable in ruby … thanks :slight\_smile:

---

## [How to write your own created\_at/updated\_at?](https://www.ruby-forum.com/t/how-to-write-your-own-created-at-updated-at/191824)

<div class="topic-metadata">

**Author:** [@Vladimir\_R](https://www.ruby-forum.com/u/Vladimir_R)\
**Replies:** 1\
**Last updated:** [July 19, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/how-to-write-your-own-created-at-updated-at/191824 "2010-07-19T15:07:49Z")

</div>

I’m using Pfeed(GitHub - parolkar/pfeed: A rails plugin that allows you to create extensible log of activity) plugin for User Activity Feeds. It creates PfeedItem model records and uses created\_at field for a lot of s…

---

## [Added associations but don't see generated methods](https://www.ruby-forum.com/t/added-associations-but-dont-see-generated-methods/191713)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 31\
**Last updated:** [July 19, 2010, 3:01pm UTC](https://www.ruby-forum.com/t/added-associations-but-dont-see-generated-methods/191713 "2010-07-19T15:01:57Z")

</div>

Hi, I’ve got a Rails app working that includes two two classes, etc.: Expense & Vendor. I eventually learned that the mental concept I had of their relationship should be express in Rails as: class Expense \< ActiveR…

---

## [How to test several locales in functional tests](https://www.ruby-forum.com/t/how-to-test-several-locales-in-functional-tests/191620)

<div class="topic-metadata">

**Author:** [@MickaSSSSl](https://www.ruby-forum.com/u/MickaSSSSl)\
**Replies:** 8\
**Last updated:** [July 19, 2010, 2:52pm UTC](https://www.ruby-forum.com/t/how-to-test-several-locales-in-functional-tests/191620 "2010-07-19T14:52:35Z")

</div>

Hi all, Yesterday I have overcome a mountain thank’s to Iain ( Exception is not raise with #t method on Rails 2.3.5 http://tinyurl.com/3yeoh34), so, it’s cool :wink: But now, I want to test every locales (for the mo…

---

## [Nifty\_scafolding](https://www.ruby-forum.com/t/nifty-scafolding/191785)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 3\
**Last updated:** [July 19, 2010, 1:48pm UTC](https://www.ruby-forum.com/t/nifty-scafolding/191785 "2010-07-19T13:48:33Z")

</div>

I’m walking through this Railcast: When I reach 5:14 to view the application, I get the following: Unknown action No action responded to index. Actions: create, edit, new, and update What should I do? Thanks.

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

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