# Rails

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

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

---

## [Rails 3 gives me allot of issues?](https://www.ruby-forum.com/t/rails-3-gives-me-allot-of-issues/194732)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 5\
**Last updated:** [September 9, 2010, 9:09pm UTC](https://www.ruby-forum.com/t/rails-3-gives-me-allot-of-issues/194732 "2010-09-09T21:09:01Z")

</div>

Hello, Is there any configuration in Rails 3 since it destroy my HTML when i try to print something out ? Example: \<%= navigation \[{:users =\> admin\_users\_path}\] %\> \<li class=""\>\<a href="/admin/users"\>users\</a\>\</li\> …

---

## [Rspec-rails setup in Rails 3](https://www.ruby-forum.com/t/rspec-rails-setup-in-rails-3/194736)

<div class="topic-metadata">

**Author:** [@coolmenu](https://www.ruby-forum.com/u/coolmenu)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/rspec-rails-setup-in-rails-3/194736 "2010-09-09T20:41:13Z")

</div>

I’m having a hard time getting rspec-rails setup in a Rails 3 app. I’m using ruby 1.9.2, rails 3.0.0 and rspec-rails 2.0.0.beta.20. In my integration test, I’m using webrat to test a “visit” to a page. I get an “und…

---

## [Syntax with link\_to using block, remote, parameters and class/id](https://www.ruby-forum.com/t/syntax-with-link-to-using-block-remote-parameters-and-class-id/194729)

<div class="topic-metadata">

**Author:** [@wbharding](https://www.ruby-forum.com/u/wbharding)\
**Replies:** 3\
**Last updated:** [September 9, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/syntax-with-link-to-using-block-remote-parameters-and-class-id/194729 "2010-09-09T17:41:26Z")

</div>

Rails 3rc, Ruby 1.9.2 Newish to rails; very new to rails3 I’m trying to create a link using a block so I can wrap the name contents in a span, for an ajax request using multiple parameters and finally, also specifyin…

---

## [Conditional ajax call after page is loaded](https://www.ruby-forum.com/t/conditional-ajax-call-after-page-is-loaded/194727)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/conditional-ajax-call-after-page-is-loaded/194727 "2010-09-09T17:26:48Z")

</div>

Hi - I have an app where the user can submit a query and the page gets updated dynamically. Right now, the user types in a query with a remote\_form\_tag. I’d like to add the ability to encode the search term in the U…

---

## [Will a Quad-core i5 processor significantly speed up development on Linux or Mac?](https://www.ruby-forum.com/t/will-a-quad-core-i5-processor-significantly-speed-up-development-on-linux-or-mac/194692)

<div class="topic-metadata">

**Author:** [@bluehandtalking](https://www.ruby-forum.com/u/bluehandtalking)\
**Replies:** 9\
**Last updated:** [September 9, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/will-a-quad-core-i5-processor-significantly-speed-up-development-on-linux-or-mac/194692 "2010-09-09T17:21:31Z")

</div>

I am looking at getting a new Thinkpad with an i5 processor. I was curious to what extent this would speed up developing a Ruby on Rails app. I am guessing that this depends to what extent multi-threading is utilized…

---

## [Re: How to apply OR condition in model.find?](https://www.ruby-forum.com/t/re-how-to-apply-or-condition-in-model-find/194728)

<div class="topic-metadata">

**Author:** [@fred\_batschelet](https://www.ruby-forum.com/u/fred_batschelet)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/re-how-to-apply-or-condition-in-model-find/194728 "2010-09-09T17:07:28Z")

</div>

Hi, find (ActiveRecord::Base) - APIdock shows: mihserf - July 22, 20083 thanks :conditions examples :conditions =\> {:login =\> login, :password =\> password} :conditions =\> \[â€˜subject LIKE :foo OR body LIKE :fooâ€™, …

---

## [Gruff Stacked Bar order of data](https://www.ruby-forum.com/t/gruff-stacked-bar-order-of-data/106048)

<div class="topic-metadata">

**Author:** [@catalleres](https://www.ruby-forum.com/u/catalleres)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 4:55pm UTC](https://www.ruby-forum.com/t/gruff-stacked-bar-order-of-data/106048 "2010-09-09T16:55:54Z")

</div>

I am making a stacked bar graph in Gruff. Could anyone help me by telling me how I can change the order in which the data is stacked. No matter what order I put the data in, I get the same result on the png picure. …

---

## [Populate combo box from database without repeatness](https://www.ruby-forum.com/t/populate-combo-box-from-database-without-repeatness/194657)

<div class="topic-metadata">

**Author:** [@PalaniKannan\_K](https://www.ruby-forum.com/u/PalaniKannan_K)\
**Replies:** 4\
**Last updated:** [September 9, 2010, 4:47pm UTC](https://www.ruby-forum.com/t/populate-combo-box-from-database-without-repeatness/194657 "2010-09-09T16:47:33Z")

</div>

Hi, I have a column of data with repeated as mentioned below. column\_name Acer Lenova HP Lenova Acer Acer Lenova I need to populate this column in a combo box without repeated data as mentioned below combo b…

---

## [How to apply OR condition in model.find?](https://www.ruby-forum.com/t/how-to-apply-or-condition-in-model-find/194716)

<div class="topic-metadata">

**Author:** [@PalaniKannan\_K](https://www.ruby-forum.com/u/PalaniKannan_K)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 3:31pm UTC](https://www.ruby-forum.com/t/how-to-apply-or-condition-in-model-find/194716 "2010-09-09T15:31:25Z")

</div>

Hi, @table\_names = TableName.find(:all, :conditions=\>{:column\_name =\> params\[:gm\], :column\_id =\> params\[:id\]}) Here, I used two conditions to find SQL. This two conditions applies with “AND”. I need to apply this tw…

---

## [Mysql2](https://www.ruby-forum.com/t/mysql2/194704)

<div class="topic-metadata">

**Author:** [@ALISHER\_ULUGBEKOV](https://www.ruby-forum.com/u/ALISHER_ULUGBEKOV)\
**Replies:** 6\
**Last updated:** [September 9, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/mysql2/194704 "2010-09-09T15:09:46Z")

</div>

I am really disappointed that rails 3.0 have a problem, big issue with mysql2. I googled and surprised that none of the ruby core developers mentioning this problem at least telling to people about this issue and so…

---

## [View on index pages data from custom SQL statements](https://www.ruby-forum.com/t/view-on-index-pages-data-from-custom-sql-statements/194715)

<div class="topic-metadata">

**Author:** [@danmcb](https://www.ruby-forum.com/u/danmcb)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 3:04pm UTC](https://www.ruby-forum.com/t/view-on-index-pages-data-from-custom-sql-statements/194715 "2010-09-09T15:04:29Z")

</div>

I need to show on my index page in one of the collumns data that would be result of a SQL statment. Is there a universal way to do it? In my current case I have table A and B, A has many B, B belongs to A. In my A’s i…

---

## [Are you an RoR Ninja? Want a signing bonus?](https://www.ruby-forum.com/t/are-you-an-ror-ninja-want-a-signing-bonus/194719)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/are-you-an-ror-ninja-want-a-signing-bonus/194719 "2010-09-09T15:03:19Z")

</div>

Hi There, SourcePad is expanding rapidly, we just moved into a larger office (with a view) and we have now worked with 40+ clients! We currently have more RoR projects than we can handle and need to grow our team! W…

---

## [New beginning rails 3 book from apress](https://www.ruby-forum.com/t/new-beginning-rails-3-book-from-apress/194701)

<div class="topic-metadata">

**Author:** [@BeagleBen](https://www.ruby-forum.com/u/BeagleBen)\
**Replies:** 3\
**Last updated:** [September 9, 2010, 1:48pm UTC](https://www.ruby-forum.com/t/new-beginning-rails-3-book-from-apress/194701 "2010-09-09T13:48:56Z")

</div>

Has anyone bought this book, just read a not so favorable review on amazon, would appreciate any opinions Beagle

---

## [Cannot start sqlite3](https://www.ruby-forum.com/t/cannot-start-sqlite3/194676)

<div class="topic-metadata">

**Author:** [@daz](https://www.ruby-forum.com/u/daz)\
**Replies:** 6\
**Last updated:** [September 9, 2010, 1:44pm UTC](https://www.ruby-forum.com/t/cannot-start-sqlite3/194676 "2010-09-09T13:44:36Z")

</div>

Hello everybody, i’m a long time watcher of these forums first time poster. I wanted to start getting into rails and have a play, I found a very useful guide on the Internet detailing the install process for Ubuntu 1…

---

## [Dynamically changing ActionMailer::Base.delivery\_method](https://www.ruby-forum.com/t/dynamically-changing-actionmailer-base-delivery-method/194697)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 1:40pm UTC](https://www.ruby-forum.com/t/dynamically-changing-actionmailer-base-delivery-method/194697 "2010-09-09T13:40:44Z")

</div>

Hi all, I need some of my emails to go out using “smtp” and some others using “sendmail” . Is there a clean way to switch between these two deliver methods depending upon the mailer method? Thanks!

---

## [How to create XML](https://www.ruby-forum.com/t/how-to-create-xml/194640)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 5\
**Last updated:** [September 9, 2010, 12:57pm UTC](https://www.ruby-forum.com/t/how-to-create-xml/194640 "2010-09-09T12:57:59Z")

</div>

hi I wanna crate XML file in this format. 214 205 14 44 21 241 14 when I user render :xml =\> @service then it pick all the data from the table and show. But the format is no…

---

## [Acts\_as\_solr plugin not working properly in rails postgresql](https://www.ruby-forum.com/t/acts-as-solr-plugin-not-working-properly-in-rails-postgresql/194709)

<div class="topic-metadata">

**Author:** [@fspprabu](https://www.ruby-forum.com/u/fspprabu)\
**Replies:** 0\
**Last updated:** [September 9, 2010, 11:01am UTC](https://www.ruby-forum.com/t/acts-as-solr-plugin-not-working-properly-in-rails-postgresql/194709 "2010-09-09T11:01:48Z")

</div>

Hi, I have implement books search application in ruby on rails with solr server search. I am using rails 2.3.2 , postgresql-8.3.11 in CentOS and acts\_as\_solr plugin. I followed the instruction on site URL below: W…

---

## [Need help with redirection](https://www.ruby-forum.com/t/need-help-with-redirection/194699)

<div class="topic-metadata">

**Author:** [@silver-spoon](https://www.ruby-forum.com/u/silver-spoon)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 9:50am UTC](https://www.ruby-forum.com/t/need-help-with-redirection/194699 "2010-09-09T09:50:40Z")

</div>

I want to create an web application that will link up a student’s facebook, twitter and orkut accounts all under one shed. Its like connecting all the students within a college, to login into the web app, the userid w…

---

## [Chat Room For Ruby On Rails](https://www.ruby-forum.com/t/chat-room-for-ruby-on-rails/194666)

<div class="topic-metadata">

**Author:** [@Invisible](https://www.ruby-forum.com/u/Invisible)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 9:45am UTC](https://www.ruby-forum.com/t/chat-room-for-ruby-on-rails/194666 "2010-09-09T09:45:23Z")

</div>

Hi I was wondering if anybody could help me? I’m looking to setup a chat room on my website. Does anybody know of a chat room I could use or purchase that could be hooked up to our user database so they wouldn’t hav…

---

## [A version problem](https://www.ruby-forum.com/t/a-version-problem/194662)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 14\
**Last updated:** [September 9, 2010, 9:10am UTC](https://www.ruby-forum.com/t/a-version-problem/194662 "2010-09-09T09:10:16Z")

</div>

After updating, script/server fails with this stack trace: script/server -u /…/1.8/rubygems.rb:223:in activate': undefined methodmap’ for nil:NilClass (NoMethodError) from /…/1.8/rubygems/custom\_require.rb:35:in requ…

---

## [Mysql2 gem instalmlation on Ubuntu 10.04/Windows XP having Ruby 1.9.2](https://www.ruby-forum.com/t/mysql2-gem-instalmlation-on-ubuntu-10-04-windows-xp-having-ruby-1-9-2/194647)

<div class="topic-metadata">

**Author:** [@javix](https://www.ruby-forum.com/u/javix)\
**Replies:** 1\
**Last updated:** [September 9, 2010, 9:08am UTC](https://www.ruby-forum.com/t/mysql2-gem-instalmlation-on-ubuntu-10-04-windows-xp-having-ruby-1-9-2/194647 "2010-09-09T09:08:30Z")

</div>

Can anybody explain/post a valid link to/confirm the possibility for installation of mysql2 gem. I can install it neither on Windows XP x32/ x64 nor on Ubuntu (10.04 via RVM) having Ruby 1.9.2. version. Thks

---

## [Trying to local variable passed to a partial in a find call and getting nowhere](https://www.ruby-forum.com/t/trying-to-local-variable-passed-to-a-partial-in-a-find-call-and-getting-nowhere/194674)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [September 9, 2010, 9:02am UTC](https://www.ruby-forum.com/t/trying-to-local-variable-passed-to-a-partial-in-a-find-call-and-getting-nowhere/194674 "2010-09-09T09:02:59Z")

</div>

My code is… controller zipstring = sprintf("select distinct zip from visits,households where " + "households.id=visits.household\_id and visits.month=‘%2d’ and visits.year = ‘%4d’ " + “and visits.monthly = 1 order b…

---

## [How to call rails method from javascript method](https://www.ruby-forum.com/t/how-to-call-rails-method-from-javascript-method/194535)

<div class="topic-metadata">

**Author:** [@manish](https://www.ruby-forum.com/u/manish)\
**Replies:** 5\
**Last updated:** [September 9, 2010, 8:06am UTC](https://www.ruby-forum.com/t/how-to-call-rails-method-from-javascript-method/194535 "2010-09-09T08:06:26Z")

</div>

hi I wanna call rails method from the javascript method. It should be ajax call for rails method. please help me.

---

## [Problem with passing local variables to a partial view](https://www.ruby-forum.com/t/problem-with-passing-local-variables-to-a-partial-view/194659)

<div class="topic-metadata">

**Author:** [@bigos](https://www.ruby-forum.com/u/bigos)\
**Replies:** 14\
**Last updated:** [September 9, 2010, 6:57am UTC](https://www.ruby-forum.com/t/problem-with-passing-local-variables-to-a-partial-view/194659 "2010-09-09T06:57:13Z")

</div>

Hi, I use Rails 2.5 and have following problem. I’m trying to pass local variable to a partial view, as explained in section 3.4.4 I have following code in /app/views/forum\_posts/show.html.erb \<%= render :partial =\>…

---

## [Controller usage](https://www.ruby-forum.com/t/controller-usage/194691)

<div class="topic-metadata">

**Author:** [@anthonys](https://www.ruby-forum.com/u/anthonys)\
**Replies:** 22\
**Last updated:** [September 9, 2010, 6:15am UTC](https://www.ruby-forum.com/t/controller-usage/194691 "2010-09-09T06:15:49Z")

</div>

I understand that controller’s are basically the link between views and models. However, I’m a little confused as to how a controller should be structured beyond CRUD functionality. Here’s a use case: During the crea…

---

## [Create and render a flash message partial?](https://www.ruby-forum.com/t/create-and-render-a-flash-message-partial/194670)

<div class="topic-metadata">

**Author:** [@Anders\_P](https://www.ruby-forum.com/u/Anders_P)\
**Replies:** 2\
**Last updated:** [September 8, 2010, 10:49pm UTC](https://www.ruby-forum.com/t/create-and-render-a-flash-message-partial/194670 "2010-09-08T22:49:47Z")

</div>

Hello! I’m trying to create a partial for flash messages and render it to my views, but I don’t get it to work. My code looks like this: \_flash.html.erb \<% flash.each do |key, value| %\> \<%= content\_tag(:div, value, :…

---

## [\[JOB\] ROR Developer in Denver, CO](https://www.ruby-forum.com/t/job-ror-developer-in-denver-co/194668)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 0\
**Last updated:** [September 8, 2010, 8:00pm UTC](https://www.ruby-forum.com/t/job-ror-developer-in-denver-co/194668 "2010-09-08T20:00:35Z")

</div>

Companies across Colorado have sought out MODIS to deliver skilled, dedicated IT professionals. We always seek to deliver competitive and sought-after career opportunities to our potential consultants and employees. …

---

## [I18n.t and UTF-8 black diamond?](https://www.ruby-forum.com/t/i18n-t-and-utf-8-black-diamond/194632)

<div class="topic-metadata">

**Author:** [@mrkohrea](https://www.ruby-forum.com/u/mrkohrea)\
**Replies:** 3\
**Last updated:** [September 8, 2010, 7:57pm UTC](https://www.ruby-forum.com/t/i18n-t-and-utf-8-black-diamond/194632 "2010-09-08T19:57:04Z")

</div>

I am using Rails 3.0.0.rc, Nginx 0.7.67, and Passenger 2.2.15. I am using I18n.t on string literals defined for various locales, for example: I18n.t(:organization), where the :es locale defines organization: “organiz…

---

## [Build versus Create?](https://www.ruby-forum.com/t/build-versus-create/194625)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 16\
**Last updated:** [September 8, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/build-versus-create/194625 "2010-09-08T19:15:30Z")

</div>

Hello, Rails newbie… How can I go From: @book = current\_user.books.build(params\[:book\]) TO: @book = current\_user.books.create(params\[:book\], :instance =\> current\_user.instance\_id) right now I get the following erro…

---

## [Layouts in Rails 3.0](https://www.ruby-forum.com/t/layouts-in-rails-3-0/194613)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 4\
**Last updated:** [September 8, 2010, 6:22pm UTC](https://www.ruby-forum.com/t/layouts-in-rails-3-0/194613 "2010-09-08T18:22:48Z")

</div>

Hi, I’ve just started my first Rails 3 stable app from scratch and still looking at all the changes. Most things are wonderful. However, I can’t figure out what happened to the layout structure. In my controller: cl…

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

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