# Rails

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

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

---

## [Are those classes built-in?](https://www.ruby-forum.com/t/are-those-classes-built-in/193310)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 12\
**Last updated:** [August 23, 2010, 10:07am UTC](https://www.ruby-forum.com/t/are-those-classes-built-in/193310 "2010-08-23T10:07:01Z")

</div>

At: Getting Started with Rails — Ruby on Rails Guides You can see the following for example in /app/views/posts/show.html.erb . . \<%= f.label :body %\> \<%= f.text\_area :body %\> \<%= f.submit %\> .…

---

## [Barry Flower is out of the office](https://www.ruby-forum.com/t/barry-flower-is-out-of-the-office/193719)

<div class="topic-metadata">

**Author:** [@Barry\_Flower](https://www.ruby-forum.com/u/Barry_Flower)\
**Replies:** 0\
**Last updated:** [August 23, 2010, 9:56am UTC](https://www.ruby-forum.com/t/barry-flower-is-out-of-the-office/193719 "2010-08-23T09:56:43Z")

</div>

I will be out of the office starting 23/08/2010 and will not return until 06/09/2010. I will be accessing my mail from time to time but for urgent issues please contact Kiran Joshi (IT Issues) or Adam Brand (Busine…

---

## [Get a collection using an array of ids, keeping the order](https://www.ruby-forum.com/t/get-a-collection-using-an-array-of-ids-keeping-the-order/154847)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 8\
**Last updated:** [August 23, 2010, 9:39am UTC](https://www.ruby-forum.com/t/get-a-collection-using-an-array-of-ids-keeping-the-order/154847 "2010-08-23T09:39:44Z")

</div>

Say if i have an array of resource ids, of size n. Is there a way to get all the corresponding resources, without doing n individual Find calls? eg, i could do this: @resources = \[\] array.each{|id| @resources \<\< Re…

---

## [Paperclip - possible to modify file and load file content as string?](https://www.ruby-forum.com/t/paperclip-possible-to-modify-file-and-load-file-content-as-string/193710)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [August 23, 2010, 1:52am UTC](https://www.ruby-forum.com/t/paperclip-possible-to-modify-file-and-load-file-content-as-string/193710 "2010-08-23T01:52:05Z")

</div>

Wanted to see if anyone knows of a way - or the preferred way - to do these three tasks with Paperclip: Access the content of an uploaded file before save. I did find that the following works before save, but is th…

---

## [JOBS - Ruby on Rails Developers Required - D ublin - Up to Â£45,000 + Relocation Expenses](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developers-required-d-ublin-up-to-a-45-000-relocation-expenses/193707)

<div class="topic-metadata">

**Author:** [@Nicola\_S\_Ingenium](https://www.ruby-forum.com/u/Nicola_S_Ingenium)\
**Replies:** 0\
**Last updated:** [August 22, 2010, 11:23pm UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-developers-required-d-ublin-up-to-a-45-000-relocation-expenses/193707 "2010-08-22T23:23:23Z")

</div>

Ruby on Rails Developer My client is looking for self starting developers who will be involved in design, development, and testing of new software product. The role will be involved in developing innovative games in a…

---

## [.htaccess and Rails direction](https://www.ruby-forum.com/t/htaccess-and-rails-direction/193706)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 0\
**Last updated:** [August 22, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/htaccess-and-rails-direction/193706 "2010-08-22T22:40:04Z")

</div>

Hi I’m having a bit of a battle with NativeSpace who are hosting my rails app. Having had to downgrade from Rails 3.0.0.rc to 2.3.8 and then finding that I was having major issues with that version and Mongrel 1.1.15 …

---

## [Rails3: t.index in migrations not working anymore](https://www.ruby-forum.com/t/rails3-t-index-in-migrations-not-working-anymore/193693)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 1\
**Last updated:** [August 22, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/rails3-t-index-in-migrations-not-working-anymore/193693 "2010-08-22T18:39:30Z")

</div>

Hello, I’m playing around with Rails3 and trying to upgrade one of my applications to Rails 3.0.0.rc and I get an error which should be still working. Migration: t.index :name When I execute rake: rake aborted! A…

---

## [CodeSnipr Learning can be simple!](https://www.ruby-forum.com/t/codesnipr-learning-can-be-simple/193699)

<div class="topic-metadata">

**Author:** [@bapi](https://www.ruby-forum.com/u/bapi)\
**Replies:** 0\
**Last updated:** [August 22, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/codesnipr-learning-can-be-simple/193699 "2010-08-22T17:31:01Z")

</div>

Hi, All the group members right at here, we people recently lunched a website CodeSnipr based on Computer language like (PHP, RUBY, HTML, CSS, MYSQL, JQURY, IPHONE DEVELOPMENT, JAVASCRIPT, C++ etc.). CodeSnipr will p…

---

## [Ask for best practices on rails-bestpractices.com](https://www.ruby-forum.com/t/ask-for-best-practices-on-rails-bestpractices-com/193697)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 0\
**Last updated:** [August 22, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/ask-for-best-practices-on-rails-bestpractices-com/193697 "2010-08-22T16:44:11Z")

</div>

Hi http://rails-bestpractices.com added a new feature, asking for best practices, it allows users to ask for a best practice about any rails related work, such as “How to detect N+1 queries?” and “How to upload a lar…

---

## [What is meant here?](https://www.ruby-forum.com/t/what-is-meant-here/193364)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 3\
**Last updated:** [August 22, 2010, 4:27pm UTC](https://www.ruby-forum.com/t/what-is-meant-here/193364 "2010-08-22T16:27:10Z")

</div>

In the “Head First Rails” book, it mentions the following: If the matching route contains symbols, then the Routing system will create “matching parameters” in the request parameters table params\[. … \]… I want to as…

---

## [Embedded Ruby](https://www.ruby-forum.com/t/embedded-ruby/193367)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [August 22, 2010, 4:25pm UTC](https://www.ruby-forum.com/t/embedded-ruby/193367 "2010-08-22T16:25:54Z")

</div>

I know when we want to embed ruby code, we use a file with the extension: \*.html.erb My question is: Is “Embedded Ruby” a kind of interpreter? Thanks.

---

## [Flash message doesn't show up](https://www.ruby-forum.com/t/flash-message-doesnt-show-up/193673)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 6\
**Last updated:** [August 22, 2010, 4:19pm UTC](https://www.ruby-forum.com/t/flash-message-doesnt-show-up/193673 "2010-08-22T16:19:35Z")

</div>

In the controller method I have the following: def create @adv = Adv.new(params\[:adv\]) @adv.save flash\[:notice\] = “Advertisement successfully created” redirect\_to “/advs/#{@adv.id}” end When I create a new “Adv”, …

---

## [Partials and a question of correct form](https://www.ruby-forum.com/t/partials-and-a-question-of-correct-form/193683)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 2\
**Last updated:** [August 22, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/partials-and-a-question-of-correct-form/193683 "2010-08-22T15:09:21Z")

</div>

I’m new to Rails and trying to figure out the correct way to handle dynamic data in a partial. The partial in question will be used to display a google ad. The html for this ad will differ based upon the user (do they…

---

## [Question about RVM installation; where to find .bashrc and/or .bash\_profile files?](https://www.ruby-forum.com/t/question-about-rvm-installation-where-to-find-bashrc-and-or-bash-profile-files/193686)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 1\
**Last updated:** [August 22, 2010, 11:35am UTC](https://www.ruby-forum.com/t/question-about-rvm-installation-where-to-find-bashrc-and-or-bash-profile-files/193686 "2010-08-22T11:35:07Z")

</div>

Hi– Have just installed downloaded and installed RVM from Github and got this message after download: You must now finish the install manually: Place the folowing line at the end of your shell’s loading files(.bash…

---

## [Languages](https://www.ruby-forum.com/t/languages/192639)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 13\
**Last updated:** [August 22, 2010, 5:05am UTC](https://www.ruby-forum.com/t/languages/192639 "2010-08-22T05:05:24Z")

</div>

My client has a translator and wants a lot of his page content to be translated into 6 different languages. When a user selects their language on the front end, it need to alter the Page content, Page title and Naviga…

---

## [Seek recommendations for sortable, paginating table that accepts 'delete' selection](https://www.ruby-forum.com/t/seek-recommendations-for-sortable-paginating-table-that-accepts-delete-selection/193616)

<div class="topic-metadata">

**Author:** [@Lille](https://www.ruby-forum.com/u/Lille)\
**Replies:** 1\
**Last updated:** [August 22, 2010, 5:01am UTC](https://www.ruby-forum.com/t/seek-recommendations-for-sortable-paginating-table-that-accepts-delete-selection/193616 "2010-08-22T05:01:18Z")

</div>

Hi, I’ve been happily using the tablesorter plugin with pagination for jQuery in my rails app, but now I’m having a tough time integrating Railsian behavior like checkboxes that result in the deletion of data present…

---

## [Paperclip - Amazon S3 - https](https://www.ruby-forum.com/t/paperclip-amazon-s3-https/192993)

<div class="topic-metadata">

**Author:** [@sandy](https://www.ruby-forum.com/u/sandy)\
**Replies:** 5\
**Last updated:** [August 22, 2010, 4:09am UTC](https://www.ruby-forum.com/t/paperclip-amazon-s3-https/192993 "2010-08-22T04:09:22Z")

</div>

I am able to use Paperclip to save files to Amazon’s S3 storage. Once saved, the files are available using a URL associated with the bucket and filename. I have not been able to find a good tutorial which clearly exp…

---

## [No route matches?](https://www.ruby-forum.com/t/no-route-matches/193661)

<div class="topic-metadata">

**Author:** [@DanielMedia](https://www.ruby-forum.com/u/DanielMedia)\
**Replies:** 4\
**Last updated:** [August 21, 2010, 9:58pm UTC](https://www.ruby-forum.com/t/no-route-matches/193661 "2010-08-21T21:58:11Z")

</div>

Hi all, I’m coming from the PHP world and I’m trying to learn Ruby and Rails. I’m having a problem where I keep getting the error “No route matches / home/view” even though I have it defined it. I’d appreciate any hel…

---

## [Cleanly handling sub-generatede files with Paperclip](https://www.ruby-forum.com/t/cleanly-handling-sub-generatede-files-with-paperclip/193674)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [August 21, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/cleanly-handling-sub-generatede-files-with-paperclip/193674 "2010-08-21T21:29:35Z")

</div>

Hi, Let’s say I upload a pdf file. Imagemagick extracts all pages out of it and stores the png images on the hard-drive. How to easily handle all these generated files with Paperclip? Has anyone done that before? Tha…

---

## [Secured area](https://www.ruby-forum.com/t/secured-area/193667)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 0\
**Last updated:** [August 21, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/secured-area/193667 "2010-08-21T17:13:46Z")

</div>

In the “Head First Rails” book, it has the following as part of a method: authenticate\_or\_request\_with\_http\_basic(“Ads”) do | username, password| It mentions that “Ads” is: This is the name of the secured area of the …

---

## [Suggested books for the complete Noveice](https://www.ruby-forum.com/t/suggested-books-for-the-complete-noveice/193644)

<div class="topic-metadata">

**Author:** [@irfan](https://www.ruby-forum.com/u/irfan)\
**Replies:** 6\
**Last updated:** [August 21, 2010, 4:10pm UTC](https://www.ruby-forum.com/t/suggested-books-for-the-complete-noveice/193644 "2010-08-21T16:10:29Z")

</div>

Hi, I am new in this group, if I want to learn rubyonrails what should I do first. I am very much interested to learn rails as I saw a video and make simple blog following that and then I started feeling that I shoul…

---

## [Rails 3 plugin development - recommended practices?](https://www.ruby-forum.com/t/rails-3-plugin-development-recommended-practices/197054)

<div class="topic-metadata">

**Author:** [@kristianm](https://www.ruby-forum.com/u/kristianm)\
**Replies:** 0\
**Last updated:** [August 21, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/rails-3-plugin-development-recommended-practices/197054 "2010-08-21T16:05:48Z")

</div>

I have been thinking that there must be some better ways of doing Rails plugin development than my current approach. currently I tend to have my plugin in one location as a gem and then link to it from my Rails 3 app …

---

## [Problem with date range search using acts as solr](https://www.ruby-forum.com/t/problem-with-date-range-search-using-acts-as-solr/193663)

<div class="topic-metadata">

**Author:** [@jmanivannancse](https://www.ruby-forum.com/u/jmanivannancse)\
**Replies:** 0\
**Last updated:** [August 21, 2010, 3:27pm UTC](https://www.ruby-forum.com/t/problem-with-date-range-search-using-acts-as-solr/193663 "2010-08-21T15:27:06Z")

</div>

Hi, i am struck up with solr’s date range search. I have used acts\_as\_solr plugin in my rails project. My model looks like acts\_as\_solr :fields =\> \[:title,{:createdate=\>:date}\] No problem,if i used following date ran…

---

## [Rails 3 plugin development - recommended practices?](https://www.ruby-forum.com/t/rails-3-plugin-development-recommended-practices/193664)

<div class="topic-metadata">

**Author:** [@kristianm](https://www.ruby-forum.com/u/kristianm)\
**Replies:** 0\
**Last updated:** [August 21, 2010, 3:26pm UTC](https://www.ruby-forum.com/t/rails-3-plugin-development-recommended-practices/193664 "2010-08-21T15:26:00Z")

</div>

I have been thinking that there must be some better ways of doing Rails plugin development than my current approach. currently I tend to have my plugin in one location as a gem and then link to it from my Rails 3 app …

---

## ["Getting Started with Rails", Postgres, db:create](https://www.ruby-forum.com/t/getting-started-with-rails-postgres-db-create/193563)

<div class="topic-metadata">

**Author:** [@skywriter](https://www.ruby-forum.com/u/skywriter)\
**Replies:** 4\
**Last updated:** [August 21, 2010, 3:23pm UTC](https://www.ruby-forum.com/t/getting-started-with-rails-postgres-db-create/193563 "2010-08-21T15:23:57Z")

</div>

Hello; I have begun the “Getting Started with Rails” guide at which is supposed to create a simple blog. I execute the command “rails blog -d postgresql” without incident. I am having trouble with the next command i…

---

## [The M in ORM](https://www.ruby-forum.com/t/the-m-in-orm/193636)

<div class="topic-metadata">

**Author:** [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Replies:** 2\
**Last updated:** [August 21, 2010, 12:07am UTC](https://www.ruby-forum.com/t/the-m-in-orm/193636 "2010-08-21T00:07:40Z")

</div>

Hi everyone, I am attempting to connect an already existing mysql database with Rails. For This I can’t use the traditional “generate scaffold” and “rake db:migrate” because (I think), I’ll loose the data already e…

---

## [Help with Web Game](https://www.ruby-forum.com/t/help-with-web-game/193551)

<div class="topic-metadata">

**Author:** [@jooma2](https://www.ruby-forum.com/u/jooma2)\
**Replies:** 3\
**Last updated:** [August 21, 2010, 12:03am UTC](https://www.ruby-forum.com/t/help-with-web-game/193551 "2010-08-21T00:03:34Z")

</div>

Hello. I worked with Ruby on Rails professionally for a little under a year, but then got a new job and have been a flash developer for the last 2.5 years. So I’m extremely rusty with Rails. What I’m doing: I want …

---

## [Rake command in virtual rails](https://www.ruby-forum.com/t/rake-command-in-virtual-rails/193631)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 20, 2010, 10:55pm UTC](https://www.ruby-forum.com/t/rake-command-in-virtual-rails/193631 "2010-08-20T22:55:40Z")

</div>

i have virtual rails running on linux mint installed on laptop…im trying to run a rake command but keep getting the following errors: virtualrails@jay ~/blog $ rake db:migrate (in /home/virtualrails/blog) rake aborte…

---

## [Why isn't data being saved to the database?](https://www.ruby-forum.com/t/why-isnt-data-being-saved-to-the-database/193638)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [August 20, 2010, 10:33pm UTC](https://www.ruby-forum.com/t/why-isnt-data-being-saved-to-the-database/193638 "2010-08-20T22:33:19Z")

</div>

I’m following an example in the “Head First Rails” book. Now, when I “create” a record, and then go to the table, I find that a BLANK record is created also I enter field values. What may I be missing? This is how “a…

---

## [Set up a default route](https://www.ruby-forum.com/t/set-up-a-default-route/193635)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 20, 2010, 9:46pm UTC](https://www.ruby-forum.com/t/set-up-a-default-route/193635 "2010-08-20T21:46:35Z")

</div>

running virtual rails on linux mint… Set up a default route and remove or rename this file Routes are set up in config/routes.rb. .quick dumb question…do i setup the default route in the command prompt terminal or an…

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

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