# Rails

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

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

---

## [Hi, new on ruby on rails](https://www.ruby-forum.com/t/hi-new-on-ruby-on-rails/193307)

<div class="topic-metadata">

**Author:** [@MLK](https://www.ruby-forum.com/u/MLK)\
**Replies:** 6\
**Last updated:** [August 16, 2010, 2:32am UTC](https://www.ruby-forum.com/t/hi-new-on-ruby-on-rails/193307 "2010-08-16T02:32:18Z")

</div>

Hi, I am a student, I got an assignment, to create a twitter kind of social networking site, I am totally new on ruby on rails, I don’t know how to start working on it. Any suggestion?

---

## [Form\_for arguments](https://www.ruby-forum.com/t/form-for-arguments/193309)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 4\
**Last updated:** [August 15, 2010, 10:34pm UTC](https://www.ruby-forum.com/t/form-for-arguments/193309 "2010-08-15T22:34:21Z")

</div>

At the following: Getting Started with Rails — Ruby on Rails Guides Under: 7.4 Generating a Controller It mentions the following: \<%= form\_for(\[@post, @post.comments.build\]) do |f| %\> Why should we insert TWO argumen…

---

## [Can save object via console, but not in app's controller](https://www.ruby-forum.com/t/can-save-object-via-console-but-not-in-apps-controller/193319)

<div class="topic-metadata">

**Author:** [@jimb](https://www.ruby-forum.com/u/jimb)\
**Replies:** 1\
**Last updated:** [August 15, 2010, 9:23pm UTC](https://www.ruby-forum.com/t/can-save-object-via-console-but-not-in-apps-controller/193319 "2010-08-15T21:23:57Z")

</div>

My app has a ‘page’ model and a ‘category’ model. ‘Page’ belongs\_to :category. ‘Category’ has\_many :pages. From the console I can create and save a page object with no problems: p = Page.new #\<Page id: nil, title:…

---

## [Initializers from Rails 2 to Rails 3](https://www.ruby-forum.com/t/initializers-from-rails-2-to-rails-3/193316)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 0\
**Last updated:** [August 15, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/initializers-from-rails-2-to-rails-3/193316 "2010-08-15T21:16:56Z")

</div>

I am upgrading an app from Rails 2.3.8 to Rails 3.0. I am finding that the initializers in the initializers directory do not seem to load. Is there any way to configure it. In general, what are the new load procedu…

---

## [Rails 3 routes problem](https://www.ruby-forum.com/t/rails-3-routes-problem/193315)

<div class="topic-metadata">

**Author:** [@bosko](https://www.ruby-forum.com/u/bosko)\
**Replies:** 0\
**Last updated:** [August 15, 2010, 6:34pm UTC](https://www.ruby-forum.com/t/rails-3-routes-problem/193315 "2010-08-15T18:34:15Z")

</div>

I’m trying to port Rails 2 application to Rails 3 and I’ve problem with routes. Here is my routes.rb Enki::Application.routes.draw do match ‘/admin/health/:action’ =\> ‘admin/health#index’, :as =\> :admin\_health match…

---

## [Redirecting after logging in](https://www.ruby-forum.com/t/redirecting-after-logging-in/193273)

<div class="topic-metadata">

**Author:** [@noloman](https://www.ruby-forum.com/u/noloman)\
**Replies:** 10\
**Last updated:** [August 15, 2010, 6:15pm UTC](https://www.ruby-forum.com/t/redirecting-after-logging-in/193273 "2010-08-15T18:15:48Z")

</div>

Hey everybody, I’m trying to make an example of a small networking site, and when I log in a user, it should redirect and show his profile, but I get the following error: NoMethodError in User#index Showing app/view…

---

## [ActiveSupport::TestCase fails to roll back?](https://www.ruby-forum.com/t/activesupport-testcase-fails-to-roll-back/193294)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 5\
**Last updated:** [August 15, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/activesupport-testcase-fails-to-roll-back/193294 "2010-08-15T17:00:49Z")

</div>

A simple test case that ran properly under 2.3 blows up in 3.0RC2 with the error: Exception raised: \<#\<ActiveRecord::StatementInvalid: Mysql::Error: SAVEPOINT active\_record\_1 does not exist: ROLLBACK TO SAVEPOINT act…

---

## [Rail3: UJS submit after client-side validation](https://www.ruby-forum.com/t/rail3-ujs-submit-after-client-side-validation/193279)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 1\
**Last updated:** [August 15, 2010, 5:00pm UTC](https://www.ruby-forum.com/t/rail3-ujs-submit-after-client-side-validation/193279 "2010-08-15T17:00:01Z")

</div>

I am have some problems with UJS. I have a (potentially) large form that I was doing client side validation on (yes there is also some server side validation) using an old prototype validation routine that is not wor…

---

## [Mobile applications in ruby on rails](https://www.ruby-forum.com/t/mobile-applications-in-ruby-on-rails/193314)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 3\
**Last updated:** [August 15, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/mobile-applications-in-ruby-on-rails/193314 "2010-08-15T16:52:17Z")

</div>

How to create mobile applications for android phones in ruby on rails.

---

## [Scrapi on osx 10.6 and macpro?](https://www.ruby-forum.com/t/scrapi-on-osx-10-6-and-macpro/193311)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 0\
**Last updated:** [August 15, 2010, 2:42pm UTC](https://www.ruby-forum.com/t/scrapi-on-osx-10-6-and-macpro/193311 "2010-08-15T14:42:27Z")

</div>

Has anyone managed to get scrapi running in such a configuration? The issue seems to be the bundled tidy libs that won’t run in a 64 but environment. Under OS 10.5 I had no worries, but since going to Snow Leopard it…

---

## [Singular resources namespaced by its slug (Routing)](https://www.ruby-forum.com/t/singular-resources-namespaced-by-its-slug-routing/193308)

<div class="topic-metadata">

**Author:** [@judge](https://www.ruby-forum.com/u/judge)\
**Replies:** 0\
**Last updated:** [August 15, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/singular-resources-namespaced-by-its-slug-routing/193308 "2010-08-15T13:49:31Z")

</div>

Hi, I have the followed Rails 3 routes: Hello::Application.routes.draw do resources :blogs do resources :articles do resources :comments end end end By raking them, we can find (for instance): GET …

---

## [Multisite in Rails 3](https://www.ruby-forum.com/t/multisite-in-rails-3/193260)

<div class="topic-metadata">

**Author:** [@ratnik](https://www.ruby-forum.com/u/ratnik)\
**Replies:** 2\
**Last updated:** [August 15, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/multisite-in-rails-3/193260 "2010-08-15T13:07:03Z")

</div>

I need to develop Rails 3 application with a single codebase (controlers, models, helpers, etc), but with different views support. For example if I open www.site1.com my Rails 3 app loads views and layouts for site1, …

---

## [Rails Report Generator that can read associations](https://www.ruby-forum.com/t/rails-report-generator-that-can-read-associations/192040)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 1\
**Last updated:** [August 15, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/rails-report-generator-that-can-read-associations/192040 "2010-08-15T13:07:03Z")

</div>

Howdoo everyone, I’m looking for a Rails plugin or gem that can allow users to generate very flexible reports. Ideally, it should be able to: Allow a user to select a model (from a list made by me) to generate a r…

---

## [Complex folder estructure inside locale translated](https://www.ruby-forum.com/t/complex-folder-estructure-inside-locale-translated/189772)

<div class="topic-metadata">

**Author:** [@andresgutgon](https://www.ruby-forum.com/u/andresgutgon)\
**Replies:** 14\
**Last updated:** [August 15, 2010, 11:28am UTC](https://www.ruby-forum.com/t/complex-folder-estructure-inside-locale-translated/189772 "2010-08-15T11:28:08Z")

</div>

Hello I’ve been watching these two projects \[1\] and \[2\]. Both look good. But I see it is not possible to have a complex structure inside the locale folder. The two projects caught the .yml and displayed in a web int…

---

## [Establish\_connection not honored by db:migrate](https://www.ruby-forum.com/t/establish-connection-not-honored-by-db-migrate/193200)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 15\
**Last updated:** [August 15, 2010, 8:57am UTC](https://www.ruby-forum.com/t/establish-connection-not-honored-by-db-migrate/193200 "2010-08-15T08:57:05Z")

</div>

Short form: How can I convince migrate to create or modify tables in a database other than the “current” one? In other words, how can I get migrate to honor establish\_connection :external in a model definition? Detai…

---

## [Receiving nil on ID results using select](https://www.ruby-forum.com/t/receiving-nil-on-id-results-using-select/193291)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 1\
**Last updated:** [August 15, 2010, 4:25am UTC](https://www.ruby-forum.com/t/receiving-nil-on-id-results-using-select/193291 "2010-08-15T04:25:39Z")

</div>

On my teams table I have a column for ESPN names where ESPN uses it’s own naming convention for teams. I’m trying to do a simple find\_by\_field… @team = “Navy” @o\_team = Team.find\_by\_espn\_team(@team, :select =\> “team…

---

## [Solution for "No definition for XXX" gem installation errors](https://www.ruby-forum.com/t/solution-for-no-definition-for-xxx-gem-installation-errors/193295)

<div class="topic-metadata">

**Author:** [@turkan](https://www.ruby-forum.com/u/turkan)\
**Replies:** 0\
**Last updated:** [August 15, 2010, 2:43am UTC](https://www.ruby-forum.com/t/solution-for-no-definition-for-xxx-gem-installation-errors/193295 "2010-08-15T02:43:13Z")

</div>

Hello. I had a problem with RDoc when installing various gems (mysql, mongrel). I often got error messages of the kind “No definition for XXX”. When doing a google search with that error then it seems that a lot of p…

---

## [Link to remote and the equivalent in Rails 3](https://www.ruby-forum.com/t/link-to-remote-and-the-equivalent-in-rails-3/193246)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 11\
**Last updated:** [August 15, 2010, 12:37am UTC](https://www.ruby-forum.com/t/link-to-remote-and-the-equivalent-in-rails-3/193246 "2010-08-15T00:37:58Z")

</div>

Hi WOW! Is Rails 3 another interesting learning curve. Just when I think I have a general working knowledge of Rails 2 … things change. I’m trying to replicate the following in Rails 3: \<%= link\_to\_remote image\_tag(“…

---

## [Gem install bundler works, gem bundle doesn't?](https://www.ruby-forum.com/t/gem-install-bundler-works-gem-bundle-doesnt/193287)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 2\
**Last updated:** [August 14, 2010, 11:36pm UTC](https://www.ruby-forum.com/t/gem-install-bundler-works-gem-bundle-doesnt/193287 "2010-08-14T23:36:46Z")

</div>

This is probably a simple user error, but why doesn’t “gem bundle” work after “gem install bundler”? bash$ gem install bundler Successfully installed bundler-0.9.26 1 gem installed Installing ri documentation for bun…

---

## [I am getting errors when run these commands](https://www.ruby-forum.com/t/i-am-getting-errors-when-run-these-commands/193290)

<div class="topic-metadata">

**Author:** [@Muhammad\_Ifzaal](https://www.ruby-forum.com/u/Muhammad_Ifzaal)\
**Replies:** 0\
**Last updated:** [August 14, 2010, 11:02pm UTC](https://www.ruby-forum.com/t/i-am-getting-errors-when-run-these-commands/193290 "2010-08-14T23:02:35Z")

</div>

XXXXXXXXXX:~/.coupa-1.5#gem list \*\*\* LOCAL GEMS \*\*\* actionmailer (2.3.8) actionpack (2.3.8) activerecord (2.3.8) activeresource (2.3.8) activesupport (2.3.8) acts\_as\_ferret (0.4.1) daemons (1.0.10) gem\_plugin (0…

---

## [Documentation setup errors on Debian 5 during gem installations](https://www.ruby-forum.com/t/documentation-setup-errors-on-debian-5-during-gem-installations/193289)

<div class="topic-metadata">

**Author:** [@turkan](https://www.ruby-forum.com/u/turkan)\
**Replies:** 0\
**Last updated:** [August 14, 2010, 10:45pm UTC](https://www.ruby-forum.com/t/documentation-setup-errors-on-debian-5-during-gem-installations/193289 "2010-08-14T22:45:02Z")

</div>

Hello! I have an Ubuntu 10.04 system (my development system) and a Debian 5 system (my production system). When installing gems on Ubuntu everything works really fine, but on the Debian 5 system the same gems come up…

---

## [Using Tolk with Google Translate](https://www.ruby-forum.com/t/using-tolk-with-google-translate/191778)

<div class="topic-metadata">

**Author:** [@Tokumine](https://www.ruby-forum.com/u/Tokumine)\
**Replies:** 1\
**Last updated:** [August 14, 2010, 9:48pm UTC](https://www.ruby-forum.com/t/using-tolk-with-google-translate/191778 "2010-08-14T21:48:15Z")

</div>

Quick writeup and video of my Tolk translation engine fork that uses the Google Translate API to provide sensible starting points for Rails i18n translations. http://www.tokumine.com/2010/07/18/using-tolk-with-google-…

---

## [Nested resource](https://www.ruby-forum.com/t/nested-resource/193280)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [August 14, 2010, 9:45pm UTC](https://www.ruby-forum.com/t/nested-resource/193280 "2010-08-14T21:45:54Z")

</div>

At: Getting Started with Rails — Ruby on Rails Guides Under: 7.3 Adding a Route for Comments For the following: resources :posts do resources :comments end It says: This creates comments as a nested resource withi…

---

## [Tolk with authlogic](https://www.ruby-forum.com/t/tolk-with-authlogic/193285)

<div class="topic-metadata">

**Author:** [@andresgutgon](https://www.ruby-forum.com/u/andresgutgon)\
**Replies:** 0\
**Last updated:** [August 14, 2010, 8:05pm UTC](https://www.ruby-forum.com/t/tolk-with-authlogic/193285 "2010-08-14T20:05:49Z")

</div>

Is posible integrate Tolk with my autentication system (Authlogic)?

---

## [Can not get CDATA out of XML node using Nokogiri](https://www.ruby-forum.com/t/can-not-get-cdata-out-of-xml-node-using-nokogiri/193231)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 5\
**Last updated:** [August 14, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/can-not-get-cdata-out-of-xml-node-using-nokogiri/193231 "2010-08-14T19:37:08Z")

</div>

Input appreciated: Trying to get data from a CDATA field out of an xml doc using Nokogiri. This is the node: \<ATTACHED\_DOCUMENT\> \</ATTACHED\_DOCUMENT\> When I query I am getting at best empty string, where I should…

---

## [Paperclip generating crap urls on server, works on dev](https://www.ruby-forum.com/t/paperclip-generating-crap-urls-on-server-works-on-dev/193122)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 7\
**Last updated:** [August 14, 2010, 6:53pm UTC](https://www.ruby-forum.com/t/paperclip-generating-crap-urls-on-server-works-on-dev/193122 "2010-08-14T18:53:09Z")

</div>

Hi, I have the following: has\_attached\_file :data, :styles =\> {:theora =\> {:format =\> “ogv”}, :still =\> {:format =\> “jpg”}, :small =\> {:format =\> “jpg”}}, :url =\> “/uploads/products/:basename:suffix.:extension”, …

---

## [Request.raw\_post data saving for image getting error](https://www.ruby-forum.com/t/request-raw-post-data-saving-for-image-getting-error/193278)

<div class="topic-metadata">

**Author:** [@yogendra](https://www.ruby-forum.com/u/yogendra)\
**Replies:** 2\
**Last updated:** [August 14, 2010, 6:51pm UTC](https://www.ruby-forum.com/t/request-raw-post-data-saving-for-image-getting-error/193278 "2010-08-14T18:51:35Z")

</div>

Hi, I am try to saving the request.raw\_post in file and try to saving image as regular paperclip saving image… i m getting the error ‘Errno::EBADF (Bad file descriptor):’ can anybody tell me how sorted out this. Th…

---

## [Rails - references?](https://www.ruby-forum.com/t/rails-references/193267)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 7\
**Last updated:** [August 14, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/rails-references/193267 "2010-08-14T17:26:44Z")

</div>

Following this tutorial: Under; 7.1 Generating a Model It mentions the following for creating a “Comment” model: $ rails generate model Comment commenter:string body:text post:references In post:references What is…

---

## [Error\_messages](https://www.ruby-forum.com/t/error-messages/193271)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 4\
**Last updated:** [August 14, 2010, 5:24pm UTC](https://www.ruby-forum.com/t/error-messages/193271 "2010-08-14T17:24:45Z")

</div>

At: Getting Started with Rails — Ruby on Rails Guides Under: 7.4 Generating a Controller In the following: \<%= form\_for(\[@post, @post.comments.build\]) do |f| %\> \<%= f.error\_messages %\> What is: \<%= f.error\_messages …

---

## [Rails and Oracle - can select date but cannot save](https://www.ruby-forum.com/t/rails-and-oracle-can-select-date-but-cannot-save/193202)

<div class="topic-metadata">

**Author:** [@techy\_bolek](https://www.ruby-forum.com/u/techy_bolek)\
**Replies:** 4\
**Last updated:** [August 14, 2010, 5:18pm UTC](https://www.ruby-forum.com/t/rails-and-oracle-can-select-date-but-cannot-save/193202 "2010-08-14T17:18:41Z")

</div>

I’m seeing a behavior in Rails that I find very strange. Having worked quite a bit with Oracle with other languages I would always dutifully do ALTER SESSION SET NLS\_DATE\_FORMAT = \<my\_date\_format\> and ensure I use tha…

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

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