# Rails

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

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

---

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

<div class="topic-metadata">

**Author:** [@twerth](https://www.ruby-forum.com/u/twerth)\
**Replies:** 7\
**Last updated:** [August 31, 2010, 9:44pm UTC](https://www.ruby-forum.com/t/newbie-problem/194153 "2010-08-31T21:44:20Z")

</div>

Trying to learn how to work with arrays. Using RubyMine. Trouble with array syntax below in html.erb file. Ruby Arrays \<%= array = \['a','b','c'\] %\> Shows up in browser as this: \[“a”, “b”, “c”\] using 1.9.…

---

## [How to simulate a column that do not exists in a model](https://www.ruby-forum.com/t/how-to-simulate-a-column-that-do-not-exists-in-a-model/194192)

<div class="topic-metadata">

**Author:** [@lucas\_franceschi](https://www.ruby-forum.com/u/lucas_franceschi)\
**Replies:** 5\
**Last updated:** [August 31, 2010, 9:09pm UTC](https://www.ruby-forum.com/t/how-to-simulate-a-column-that-do-not-exists-in-a-model/194192 "2010-08-31T21:09:46Z")

</div>

Hello there… what i am trying to do, is to consider a new column in my model, a column that do not exist in the database, and will not be created. imagine, for instance, this case: I have a table that store a number…

---

## [Re: newbie problem](https://www.ruby-forum.com/t/re-newbie-problem/194175)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 2\
**Last updated:** [August 31, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/re-newbie-problem/194175 "2010-08-31T19:45:28Z")

</div>

On Aug 31, 3:29 am, Todd W. removed\_email\_address@domain.invalid wrote: Shows up in browser as this: \[“a”, “b”, “c”\] That’s perfectly valid. \[“a”, “b”, “c”\] is the same as \[‘a’, ‘b’, ‘c’\]. That is, “a” is the sam…

---

## [Could not find generator rspec:install](https://www.ruby-forum.com/t/could-not-find-generator-rspec-install/192838)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [August 31, 2010, 7:32pm UTC](https://www.ruby-forum.com/t/could-not-find-generator-rspec-install/192838 "2010-08-31T19:32:34Z")

</div>

I’m trying to follow this tutorial here: http://railstutorial.org/chapters/static-pages#top When I run: $ rails generate rspec:install I get: Could not find generator rspec:install. What could be the problem? Than…

---

## [Where's the old rails guide?](https://www.ruby-forum.com/t/wheres-the-old-rails-guide/194165)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 2\
**Last updated:** [August 31, 2010, 6:41pm UTC](https://www.ruby-forum.com/t/wheres-the-old-rails-guide/194165 "2010-08-31T18:41:38Z")

</div>

Hi everyone, Now that rails 3 is out and everyone is excited, does anybody know where’s the 2.3 guide went? Thanks heaps. Joshua – http://twitter.com/scrum8

---

## [\[JOB\] Ruby on Rails Developers (front end or back end)](https://www.ruby-forum.com/t/job-ruby-on-rails-developers-front-end-or-back-end/194179)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 5:16pm UTC](https://www.ruby-forum.com/t/job-ruby-on-rails-developers-front-end-or-back-end/194179 "2010-08-31T17:16:09Z")

</div>

We are looking for several Rails Developers in Austin, TX. We will consider candidates with strong PHP and non-professional RoR experience. Here are the core requirements: • 3-5 years of professional experience in …

---

## [Rails Technical Design](https://www.ruby-forum.com/t/rails-technical-design/194169)

<div class="topic-metadata">

**Author:** [@pankaj](https://www.ruby-forum.com/u/pankaj)\
**Replies:** 2\
**Last updated:** [August 31, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/rails-technical-design/194169 "2010-08-31T16:44:50Z")

</div>

Hi Everyone, It will be nice if every one can share the process and the best practices followed for technical design of a Rails project. May be in the end we can come up with a common template(if needed). Let me star…

---

## [Rubyonrails.org site source open?](https://www.ruby-forum.com/t/rubyonrails-org-site-source-open/194172)

<div class="topic-metadata">

**Author:** [@Balban](https://www.ruby-forum.com/u/Balban)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 4:32pm UTC](https://www.ruby-forum.com/t/rubyonrails-org-site-source-open/194172 "2010-08-31T16:32:13Z")

</div>

rubyonrails.org site looks like a suitable template for open source software projects. Are these sources available as open source? Thanks

---

## [Multipart email - HTML & document files](https://www.ruby-forum.com/t/multipart-email-html-document-files/193970)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 6\
**Last updated:** [August 31, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/multipart-email-html-document-files/193970 "2010-08-31T16:05:14Z")

</div>

What I want, and can’t seem to achieve, is to send an html email with an attachment. As it stands, I can do one or the other and aren’t sure how to get both to work. Mailer: http://pastie.org/1119939 Corresponding v…

---

## [Ruby1.9.2 openssl libs](https://www.ruby-forum.com/t/ruby1-9-2-openssl-libs/194167)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 2\
**Last updated:** [August 31, 2010, 3:38pm UTC](https://www.ruby-forum.com/t/ruby1-9-2-openssl-libs/194167 "2010-08-31T15:38:58Z")

</div>

Hi I installed ruby1.9.2 through rvm. now my new Rails3 app is complaining about openssl… I checked my distro’s repos, but libopenssl-ruby is available for ruby1.8.x and ruby1.9.1 How do i resolve this issue? – S…

---

## [RoR working on Windows 7 without Instant Rails](https://www.ruby-forum.com/t/ror-working-on-windows-7-without-instant-rails/194155)

<div class="topic-metadata">

**Author:** [@RandomHero](https://www.ruby-forum.com/u/RandomHero)\
**Replies:** 1\
**Last updated:** [August 31, 2010, 3:37pm UTC](https://www.ruby-forum.com/t/ror-working-on-windows-7-without-instant-rails/194155 "2010-08-31T15:37:08Z")

</div>

Lots of people have been getting sqlite3 errors with this so I thought I would post how I got it working. Install Ruby. (Go to http://rubyonrails.org/download and run the Windows installer. At the time of writing, I…

---

## [Rails 3 formatted URL's](https://www.ruby-forum.com/t/rails-3-formatted-urls/194147)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 3\
**Last updated:** [August 31, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/rails-3-formatted-urls/194147 "2010-08-31T14:55:02Z")

</div>

Hello folks! I’m using Rails 3 right now, and I am trying to get my RSS feed working. However, I am getting – undefined method \`formatted\_posts\_url’ when i try to view my RSS feed. “Posts” is the controller that I…

---

## [After\_saved called twice -- how to fix?](https://www.ruby-forum.com/t/after-saved-called-twice-how-to-fix/194111)

<div class="topic-metadata">

**Author:** [@richardsugg](https://www.ruby-forum.com/u/richardsugg)\
**Replies:** 6\
**Last updated:** [August 31, 2010, 1:38pm UTC](https://www.ruby-forum.com/t/after-saved-called-twice-how-to-fix/194111 "2010-08-31T13:38:20Z")

</div>

I have an after\_save callback setup, but it’s getting called twice. Per https://rails.lighthouseapp.com/projects/8994/tickets/764-observers-on-a-model-are-called-multiple-times , this is a known issue that won’t be fi…

---

## [Redirect from http://rails-i18n.org/wiki to http://ruby-i18n.org/wiki](https://www.ruby-forum.com/t/redirect-from-http-rails-i18n-org-wiki-to-http-ruby-i18n-org-wiki/194163)

<div class="topic-metadata">

**Author:** [@Anatoly](https://www.ruby-forum.com/u/Anatoly)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 12:42pm UTC](https://www.ruby-forum.com/t/redirect-from-http-rails-i18n-org-wiki-to-http-ruby-i18n-org-wiki/194163 "2010-08-31T12:42:08Z")

</div>

Redirect from http://rails-i18n.org/wiki fails to http://www.ruby-i18n.orgwiki/. Please, fix it. Good luck )

---

## [Stuck on "No route matches" when porting to rails 3.0](https://www.ruby-forum.com/t/stuck-on-no-route-matches-when-porting-to-rails-3-0/194162)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 12:16pm UTC](https://www.ruby-forum.com/t/stuck-on-no-route-matches-when-porting-to-rails-3-0/194162 "2010-08-31T12:16:49Z")

</div>

I don’t do anything special. This default route setting should work. But it doesn’t. Portal::Application.routes.draw do |map| map.root :controller =\> “portal”, :action =\> “logout” map.connect ‘:controller/:action/:id…

---

## [UTF-8 to ASCII Conversion](https://www.ruby-forum.com/t/utf-8-to-ascii-conversion/194158)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 12:02pm UTC](https://www.ruby-forum.com/t/utf-8-to-ascii-conversion/194158 "2010-08-31T12:02:12Z")

</div>

UTF-8 to ASCII Conversion does anybody knows how to convert from UTF-8 to ASCII. the problem is that,the DB supports UTF-8 in one server, which can display Special characters when PRAWN generates the PDF… when the sa…

---

## [Assert\_select for \<p\>\<b\>text\</b\>value\</p\>](https://www.ruby-forum.com/t/assert-select-for-p-b-text-b-value-p/194013)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 6\
**Last updated:** [August 31, 2010, 11:03am UTC](https://www.ruby-forum.com/t/assert-select-for-p-b-text-b-value-p/194013 "2010-08-31T11:03:12Z")

</div>

I have the following html textvalue I can use assert\_select "p\>b", "text" to check the text portion, and assert\_select "p", "value" to check that the value appears in a . I cannot work out how to check that the two ar…

---

## [2 x Perm Ruby developers needed](https://www.ruby-forum.com/t/2-x-perm-ruby-developers-needed/194156)

<div class="topic-metadata">

**Author:** [@richfuel](https://www.ruby-forum.com/u/richfuel)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 10:09am UTC](https://www.ruby-forum.com/t/2-x-perm-ruby-developers-needed/194156 "2010-08-31T10:09:04Z")

</div>

I am looking for two ruby developers to join a leading client in Cambridge. The roles have a high level of responsibility and flexibility and will provide great opportunities for professional development. Skills: A C…

---

## [Paperclip gem install failed](https://www.ruby-forum.com/t/paperclip-gem-install-failed/194140)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 3\
**Last updated:** [August 31, 2010, 10:02am UTC](https://www.ruby-forum.com/t/paperclip-gem-install-failed/194140 "2010-08-31T10:02:54Z")

</div>

when i’m installing paperclip gem its return err (i18n requires RubyGems version \>= 1.3.6) the os is ubuntu 10.04 64bit -nirosh-

---

## [Manageable search forms](https://www.ruby-forum.com/t/manageable-search-forms/194154)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 9:50am UTC](https://www.ruby-forum.com/t/manageable-search-forms/194154 "2010-08-31T09:50:31Z")

</div>

I’ve got a job search form that will search a ‘jobs’ table. What would be the best way to give my client the ability to edit the fields in the search form?

---

## [Active Scaffold](https://www.ruby-forum.com/t/active-scaffold/160651)

<div class="topic-metadata">

**Author:** [@priyadharsini](https://www.ruby-forum.com/u/priyadharsini)\
**Replies:** 2\
**Last updated:** [August 31, 2010, 7:38am UTC](https://www.ruby-forum.com/t/active-scaffold/160651 "2010-08-31T07:38:08Z")

</div>

Hi, I’m using Active Scaffold in my application, its showing the following error. NameError in Events#index Showing app/views/layouts/events.rhtml where line #9 raised: undefined local variable or method \`calendar\_d…

---

## [Some basic help on creating "friends" that are "users?"](https://www.ruby-forum.com/t/some-basic-help-on-creating-friends-that-are-users/194138)

<div class="topic-metadata">

**Author:** [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Replies:** 1\
**Last updated:** [August 31, 2010, 4:24am UTC](https://www.ruby-forum.com/t/some-basic-help-on-creating-friends-that-are-users/194138 "2010-08-31T04:24:00Z")

</div>

New to RoR, trying to model this correctly (which should be super simple I’d think, but I’m stuck at the moment): Any given “User” of the app can have a group of “friends” (where friends are also users.) (think typi…

---

## [Will\_paginate](https://www.ruby-forum.com/t/will-paginate/193923)

<div class="topic-metadata">

**Author:** [@raonyvf](https://www.ruby-forum.com/u/raonyvf)\
**Replies:** 14\
**Last updated:** [August 31, 2010, 3:34am UTC](https://www.ruby-forum.com/t/will-paginate/193923 "2010-08-31T03:34:50Z")

</div>

Hello G.s I hope someone can help me I’ve been trying but without success to do a pagination using the will\_paginate gem. When I’m listing all records the system paginates but when I’m doing a filter to show some re…

---

## [Counter cache not decrementing](https://www.ruby-forum.com/t/counter-cache-not-decrementing/194130)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 2\
**Last updated:** [August 31, 2010, 2:00am UTC](https://www.ruby-forum.com/t/counter-cache-not-decrementing/194130 "2010-08-31T02:00:35Z")

</div>

This is what I have belongs\_to :user, :counter\_cache =\> true belongs\_to :vote\_item, :counter\_cache =\> true belongs\_to :vote\_topic, :counter\_cache =\> true ##User model def vote\_for(vid, vtid) Vote.create(:user\_id =\> s…

---

## [Rails new --builder](https://www.ruby-forum.com/t/rails-new-builder/194142)

<div class="topic-metadata">

**Author:** [@3nd3r](https://www.ruby-forum.com/u/3nd3r)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 1:48am UTC](https://www.ruby-forum.com/t/rails-new-builder/194142 "2010-08-31T01:48:52Z")

</div>

When invoking rails new with the --builder option, I see that you have to call the class ::AppBuilder. How can you change the source\_root for just a few of the methods? I want to generate the gemfile from my own templ…

---

## [Howto reload changes using script/console?](https://www.ruby-forum.com/t/howto-reload-changes-using-script-console/194139)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 0\
**Last updated:** [August 31, 2010, 1:14am UTC](https://www.ruby-forum.com/t/howto-reload-changes-using-script-console/194139 "2010-08-31T01:14:07Z")

</div>

I am using script/console to debug, but when I make some changes to say a helper and rerun the method, it doesn’t reload the new changes. “reload!” doesn’t work - it only updates model changes. Suggestions? TIA

---

## [\<b\> tag in HTML 5 (was Re: Re: assert\_select for \<p\>\<b\>text\</b\>value\</p\>)](https://www.ruby-forum.com/t/b-tag-in-html-5-was-re-re-assert-select-for-p-b-text-b-value-p/194116)

<div class="topic-metadata">

**Author:** [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Replies:** 16\
**Last updated:** [August 30, 2010, 10:50pm UTC](https://www.ruby-forum.com/t/b-tag-in-html-5-was-re-re-assert-select-for-p-b-text-b-value-p/194116 "2010-08-30T22:50:46Z")

</div>

On 30 August 2010 15:47, Marnen Laibow-Koser removed\_email\_address@domain.invalid wrote: google has not provided an example of this type. Any help would be much appreciated. First off: you shouldn’t ever be using …

---

## [Rails3 xss escaping](https://www.ruby-forum.com/t/rails3-xss-escaping/194128)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 1\
**Last updated:** [August 30, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/rails3-xss-escaping/194128 "2010-08-30T20:45:39Z")

</div>

Hi. Is there a way to disable the default xss escaping of everything in rails3? What’s the proper way of doing string concatenations like below with rails3 if xss escaping can not be disabled: “something #{link\_to(‘…

---

## [Help with test Rspec](https://www.ruby-forum.com/t/help-with-test-rspec/194117)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 5\
**Last updated:** [August 30, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/help-with-test-rspec/194117 "2010-08-30T19:37:36Z")

</div>

There is a model with the Category fields parent\_id and name\_category. Golf name\_category should consist of two words separated by spaces, each of which begins with a capital letter, such as “Ruby On Rails”. There’s a…

---

## [Ruby 2.3.8 Doc](https://www.ruby-forum.com/t/ruby-2-3-8-doc/194113)

<div class="topic-metadata">

**Author:** [@manoj\_s](https://www.ruby-forum.com/u/manoj_s)\
**Replies:** 5\
**Last updated:** [August 30, 2010, 7:22pm UTC](https://www.ruby-forum.com/t/ruby-2-3-8-doc/194113 "2010-08-30T19:22:57Z")

</div>

Hey Guys, Loving RoR! Newb here. I was reading up on some api docs online and I noticed they officially launched RoR 3 and now I can’t find 2.3.8 docs. Any idea where I can find api doc or build it locally?

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

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