# Rails

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

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

---

## [Rails 3 routes admin section](https://www.ruby-forum.com/t/rails-3-routes-admin-section/195256)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 0\
**Last updated:** [September 20, 2010, 4:56pm UTC](https://www.ruby-forum.com/t/rails-3-routes-admin-section/195256 "2010-09-20T16:56:46Z")

</div>

Hello, I’m trying to re-create the old route to the new route method in Rails 3, but i cannot figure out how to do it. scope :admin, :name\_prefix =\> “admin” do resources :accounts, :users end this doesn’t give me “…

---

## [Is pdf calling is possible in the frame in ruby on rails lik](https://www.ruby-forum.com/t/is-pdf-calling-is-possible-in-the-frame-in-ruby-on-rails-lik/195252)

<div class="topic-metadata">

**Author:** [@atulrai05](https://www.ruby-forum.com/u/atulrai05)\
**Replies:** 4\
**Last updated:** [September 20, 2010, 4:55pm UTC](https://www.ruby-forum.com/t/is-pdf-calling-is-possible-in-the-frame-in-ruby-on-rails-lik/195252 "2010-09-20T16:55:40Z")

</div>

is pdf calling is possible in the frame in ruby on rails like VB for the dataentry purpose. actually i m able to open a pdf in the browser but that is make the dataentry very complex to view the pdf and do the dataent…

---

## [How do i update the gem version from 0.9.2 to 0.9.4](https://www.ruby-forum.com/t/how-do-i-update-the-gem-version-from-0-9-2-to-0-9-4/195251)

<div class="topic-metadata">

**Author:** [@atulrai05](https://www.ruby-forum.com/u/atulrai05)\
**Replies:** 0\
**Last updated:** [September 20, 2010, 3:39pm UTC](https://www.ruby-forum.com/t/how-do-i-update-the-gem-version-from-0-9-2-to-0-9-4/195251 "2010-09-20T15:39:29Z")

</div>

hi all, i tried to update the gem by gem update --system but got the error H:\\ruby\_env\\graph\\test\_ofc\_2\\test\_ofc\_2\>gem update --system Updating RubyGems… ERROR: While executing gem … (Gem::RemoteSourceException HT…

---

## [For Your Own Info: Rails 2.3.2 is incompatible with Cucumber (0.8.5), Capybara (0.3.9) and Selenium-](https://www.ruby-forum.com/t/for-your-own-info-rails-2-3-2-is-incompatible-with-cucumber-0-8-5-capybara-0-3-9-and-selenium/195234)

<div class="topic-metadata">

**Author:** [@ceekays](https://www.ruby-forum.com/u/ceekays)\
**Replies:** 2\
**Last updated:** [September 20, 2010, 2:00pm UTC](https://www.ruby-forum.com/t/for-your-own-info-rails-2-3-2-is-incompatible-with-cucumber-0-8-5-capybara-0-3-9-and-selenium/195234 "2010-09-20T14:00:02Z")

</div>

Railers, I am running an application on Rails 2.3.2. For some reason within our organization, we wish to remain on this version of Rails. For BDD/Testing, we use Cucumber. So I installed Cucumber (0.8.5), Capybara (0…

---

## [Problem about "no action" error](https://www.ruby-forum.com/t/problem-about-no-action-error/195228)

<div class="topic-metadata">

**Author:** [@kun\_niu](https://www.ruby-forum.com/u/kun_niu)\
**Replies:** 4\
**Last updated:** [September 20, 2010, 1:35pm UTC](https://www.ruby-forum.com/t/problem-about-no-action-error/195228 "2010-09-20T13:35:14Z")

</div>

Hi all, I’m a ROR newbie. I’m writing ROR application on Ubuntu 10.04, ruby 1.8.7-p249, rails 2.3.5, mongrel 1.1.5. I wrote a controller called “admin”. I also defined a function in the corresponding controller calle…

---

## [Search inside files](https://www.ruby-forum.com/t/search-inside-files/195126)

<div class="topic-metadata">

**Author:** [@vincenzo](https://www.ruby-forum.com/u/vincenzo)\
**Replies:** 3\
**Last updated:** [September 20, 2010, 12:21pm UTC](https://www.ruby-forum.com/t/search-inside-files/195126 "2010-09-20T12:21:47Z")

</div>

Hello all, Do you have more informations about developping a search functionnality to search inside PDF, Word, Excell, … files ? I think I have to use acts\_as\_solr but I don’t find any information about searching in …

---

## [Problem in downloading large file(1.1 gb) using xsendfile mo](https://www.ruby-forum.com/t/problem-in-downloading-large-file-1-1-gb-using-xsendfile-mo/195235)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 0\
**Last updated:** [September 20, 2010, 12:03pm UTC](https://www.ruby-forum.com/t/problem-in-downloading-large-file-1-1-gb-using-xsendfile-mo/195235 "2010-09-20T12:03:58Z")

</div>

Hi all, I am Running Apache as frontend server to mongrel and uploaded 1.1 Gb of file using my rails application .Now I am trying to download same 1.1 GB stream ,for that i loaded mod\_xsendfile.so in apache httpd.conf…

---

## [Q: ym4r & js & highlighting \> center map](https://www.ruby-forum.com/t/q-ym4r-js-highlighting-center-map/195226)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [September 20, 2010, 10:47am UTC](https://www.ruby-forum.com/t/q-ym4r-js-highlighting-center-map/195226 "2010-09-20T10:47:27Z")

</div>

hi, im using ym4r to create my maps etc. Next to my map i have a vertical list of results. Now i want to make that a bit more interactive by mouseover over the list to center the map on that ‘marker’. i found an …

---

## [How does one get a Rails 3 "app name"](https://www.ruby-forum.com/t/how-does-one-get-a-rails-3-app-name/195220)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 2\
**Last updated:** [September 20, 2010, 6:13am UTC](https://www.ruby-forum.com/t/how-does-one-get-a-rails-3-app-name/195220 "2010-09-20T06:13:33Z")

</div>

From within a Rails 3 Gem I’m working on, I need to get the app’s name. i.e., the value of the module that wraps the application class in application.rb. Is there some global-syle variable that contains that? #applic…

---

## [Setting up email registration with Authlogic (couple questions)?](https://www.ruby-forum.com/t/setting-up-email-registration-with-authlogic-couple-questions/195221)

<div class="topic-metadata">

**Author:** [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Replies:** 3\
**Last updated:** [September 20, 2010, 6:10am UTC](https://www.ruby-forum.com/t/setting-up-email-registration-with-authlogic-couple-questions/195221 "2010-09-20T06:10:37Z")

</div>

I’m pretty new to rails and I having troubling finding examples on how to setup email registration with Authlogic (rails3 ruby 1.9.) (I have authlogic working fine with Rails3 minus the email registration part.) The…

---

## [Devise issue](https://www.ruby-forum.com/t/devise-issue/195210)

<div class="topic-metadata">

**Author:** [@dgaj](https://www.ruby-forum.com/u/dgaj)\
**Replies:** 3\
**Last updated:** [September 20, 2010, 4:33am UTC](https://www.ruby-forum.com/t/devise-issue/195210 "2010-09-20T04:33:29Z")

</div>

Devise is very powerful, but I am struggling to get it to do what I want I’m very new to rails so please forgive any stupidity in the below. I followed the instructions on: – because I don’t want users to have to e…

---

## [Numericality validation strips chars from original entry](https://www.ruby-forum.com/t/numericality-validation-strips-chars-from-original-entry/194974)

<div class="topic-metadata">

**Author:** [@jdc](https://www.ruby-forum.com/u/jdc)\
**Replies:** 3\
**Last updated:** [September 20, 2010, 12:48am UTC](https://www.ruby-forum.com/t/numericality-validation-strips-chars-from-original-entry/194974 "2010-09-20T00:48:48Z")

</div>

I’ve noticed that if I use the numericality validator and the user enters, for example “1234ABCD” it’ll come back with a “not a number” error, but it then fills the input box with “1234”, discarding the non- numeric i…

---

## [Different databases for different sub domains](https://www.ruby-forum.com/t/different-databases-for-different-sub-domains/195193)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 13\
**Last updated:** [September 19, 2010, 11:42pm UTC](https://www.ruby-forum.com/t/different-databases-for-different-sub-domains/195193 "2010-09-19T23:42:55Z")

</div>

I asked on another thread about adding an “organisation\_id” across the whole database to effectively give a separate database for different organisations who use the app. The other way of doing it would be to have one…

---

## [Depot app from 'Agile Web Development with Rails'](https://www.ruby-forum.com/t/depot-app-from-agile-web-development-with-rails/195197)

<div class="topic-metadata">

**Author:** [@mitkok](https://www.ruby-forum.com/u/mitkok)\
**Replies:** 6\
**Last updated:** [September 19, 2010, 11:10pm UTC](https://www.ruby-forum.com/t/depot-app-from-agile-web-development-with-rails/195197 "2010-09-19T23:10:28Z")

</div>

In the book 'Agile web development with Rails", the authors are building a store-like app. At some point they add dynamic adding a product with ajax call. \<!-- store\_controller#index --\> \<% form\_remote\_tag :url =\> { :…

---

## ["git push" gives fatal error](https://www.ruby-forum.com/t/git-push-gives-fatal-error/195207)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 1\
**Last updated:** [September 19, 2010, 11:08pm UTC](https://www.ruby-forum.com/t/git-push-gives-fatal-error/195207 "2010-09-19T23:08:42Z")

</div>

Hi, I’m not sure I’m right here but hope maybe there is someone who can help with this. When I do “git push” I get the following error: ERROR: laguna53/sample\_app doesn’t exist yet. Did you enter it correctly? fata…

---

## [Unicorn via VirtualBox](https://www.ruby-forum.com/t/unicorn-via-virtualbox/195209)

<div class="topic-metadata">

**Author:** [@railsroad](https://www.ruby-forum.com/u/railsroad)\
**Replies:** 0\
**Last updated:** [September 19, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/unicorn-via-virtualbox/195209 "2010-09-19T22:07:14Z")

</div>

Hopefully I’m not barking up the wrong tree here… I am attempting to use unicorn as a production web server in a Windows environment using Ubuntu 10.04 through VirtualBox. Everything works great inside the linux env…

---

## [Commenting in an ERB without generating a compiling error](https://www.ruby-forum.com/t/commenting-in-an-erb-without-generating-a-compiling-error/195187)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 11\
**Last updated:** [September 19, 2010, 9:07pm UTC](https://www.ruby-forum.com/t/commenting-in-an-erb-without-generating-a-compiling-error/195187 "2010-09-19T21:07:34Z")

</div>

Hello, I have the following: \<% @projects.each do |project| %\> . \<%= link\_to 'Destroy', project, :confirm =\> 'Are you sure?', :method =\> :delete %\> . \<% end %\> How can I safely comment out the TD line above? D…

---

## [Time based etags](https://www.ruby-forum.com/t/time-based-etags/195203)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 0\
**Last updated:** [September 19, 2010, 7:19pm UTC](https://www.ruby-forum.com/t/time-based-etags/195203 "2010-09-19T19:19:13Z")

</div>

In my app I am serving certain controller actions every x many minutes. For example, most popular posts are generated in memcached every 30 minutes and served from there. I would like to use etags/last\_modified so tha…

---

## [Learn Ruby in which version?](https://www.ruby-forum.com/t/learn-ruby-in-which-version/195199)

<div class="topic-metadata">

**Author:** [@Nich](https://www.ruby-forum.com/u/Nich)\
**Replies:** 2\
**Last updated:** [September 19, 2010, 5:25pm UTC](https://www.ruby-forum.com/t/learn-ruby-in-which-version/195199 "2010-09-19T17:25:39Z")

</div>

Hi, There are some free books that were recommended to learn ruby, but these books are in Ruby 1.6 (Programming Ruby The Pragmatic Programmer’s Guide) and another one in Ruby 1.8. Is it fine to learn from these books…

---

## [Adding parent record to all tables](https://www.ruby-forum.com/t/adding-parent-record-to-all-tables/195175)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 4\
**Last updated:** [September 19, 2010, 10:16am UTC](https://www.ruby-forum.com/t/adding-parent-record-to-all-tables/195175 "2010-09-19T10:16:00Z")

</div>

I want to add an “Organisations” table to a Rails app so that I can separate all tables by organisation. I have put ‘organisation\_id’ on all tables but I need to work out the best way to refactor the app to cope with …

---

## [Performing nested queries in rails](https://www.ruby-forum.com/t/performing-nested-queries-in-rails/195112)

<div class="topic-metadata">

**Author:** [@vishy](https://www.ruby-forum.com/u/vishy)\
**Replies:** 5\
**Last updated:** [September 19, 2010, 10:09am UTC](https://www.ruby-forum.com/t/performing-nested-queries-in-rails/195112 "2010-09-19T10:09:34Z")

</div>

I am fairly new to rails and trying to learn rails by creating some projects on my own. I am trying to perform a geo search on a restaurant model and I am using geokit for that. My model stores the latitude and longit…

---

## [How to increase the time-out](https://www.ruby-forum.com/t/how-to-increase-the-time-out/195183)

<div class="topic-metadata">

**Author:** [@walterdavis](https://www.ruby-forum.com/u/walterdavis)\
**Replies:** 3\
**Last updated:** [September 19, 2010, 9:53am UTC](https://www.ruby-forum.com/t/how-to-increase-the-time-out/195183 "2010-09-19T09:53:46Z")

</div>

I have a Rails 2 app that doesn’t get a lot of traffic. It’s running under Passenger and Apache 2.2, and when it’s running, it has great performance, page loads are very snappy, etc. But the first hit on the site afte…

---

## [Why freeze memoization?](https://www.ruby-forum.com/t/why-freeze-memoization/193824)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 2\
**Last updated:** [September 19, 2010, 9:06am UTC](https://www.ruby-forum.com/t/why-freeze-memoization/193824 "2010-09-19T09:06:21Z")

</div>

I was wondering what was the reasoning behind freezing the Memoizable return values? Thanks

---

## [\[JOBS\] Who is the most dynamic Leader you ever worked with? Would you like to replicate that experie](https://www.ruby-forum.com/t/jobs-who-is-the-most-dynamic-leader-you-ever-worked-with-would-you-like-to-replicate-that-experie/195190)

<div class="topic-metadata">

**Author:** [@Ruby\_Kate](https://www.ruby-forum.com/u/Ruby_Kate)\
**Replies:** 0\
**Last updated:** [September 18, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/jobs-who-is-the-most-dynamic-leader-you-ever-worked-with-would-you-like-to-replicate-that-experie/195190 "2010-09-18T22:23:48Z")

</div>

My client has an opening for a Sr. Tech. Mngr RoR $250k-$300k+ Wash. DC/NYC - onsite/full time only. Well funded internal startup of a major data rich content provider is seeking a seasoned technology leader intimatel…

---

## [Attr\_accessor\_with\_default -- how to use?](https://www.ruby-forum.com/t/attr-accessor-with-default-how-to-use/195185)

<div class="topic-metadata">

**Author:** [@walterdavis](https://www.ruby-forum.com/u/walterdavis)\
**Replies:** 0\
**Last updated:** [September 18, 2010, 4:17pm UTC](https://www.ruby-forum.com/t/attr-accessor-with-default-how-to-use/195185 "2010-09-18T16:17:23Z")

</div>

I have the following model: class User \< ActiveRecord::Base devise :registerable, :database\_authenticatable, :recoverable, :confirmable, :rememberable, :trackable, :validatable attr\_accessor\_with\_default :role, ‘use…

---

## [Active Record Query](https://www.ruby-forum.com/t/active-record-query/195171)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 2\
**Last updated:** [September 18, 2010, 4:15pm UTC](https://www.ruby-forum.com/t/active-record-query/195171 "2010-09-18T16:15:38Z")

</div>

I have a Projects View that shows a list of all projects… I want to be able to say per project if the currently signed in user is a member or not, and what there role is… In the project View I have: \<% if team\_member…

---

## [Acts\_as\_solr plugin fate?](https://www.ruby-forum.com/t/acts-as-solr-plugin-fate/195089)

<div class="topic-metadata">

**Author:** [@Hassan\_S](https://www.ruby-forum.com/u/Hassan_S)\
**Replies:** 6\
**Last updated:** [September 18, 2010, 3:21pm UTC](https://www.ruby-forum.com/t/acts-as-solr-plugin-fate/195089 "2010-09-18T15:21:12Z")

</div>

Just wanted to see if I was using the latest acts\_as\_solr plugin, but the URL http://acts\_as\_solr.railsfreaks.com/ takes me to a GoDaddy domain parking page. Anyone know what’s happened to railsfreaks, and more partic…

---

## [Postgresql RETURNING statement -\> returning and ID after writing to a DB](https://www.ruby-forum.com/t/postgresql-returning-statement-returning-and-id-after-writing-to-a-db/195174)

<div class="topic-metadata">

**Author:** [@HeisenbergsUncertai](https://www.ruby-forum.com/u/HeisenbergsUncertai)\
**Replies:** 2\
**Last updated:** [September 18, 2010, 1:20pm UTC](https://www.ruby-forum.com/t/postgresql-returning-statement-returning-and-id-after-writing-to-a-db/195174 "2010-09-18T13:20:37Z")

</div>

Currently, I have an Articles page which creates articles in a DB. What I would like to do is to return the ID of the submitted article. I know how to do it with raw sql, "INSERT INTO test (name) VALUES (‘My Name 1’) …

---

## [Nil when calling joins method on Model](https://www.ruby-forum.com/t/nil-when-calling-joins-method-on-model/195177)

<div class="topic-metadata">

**Author:** [@Jeff\_Gonzalez](https://www.ruby-forum.com/u/Jeff_Gonzalez)\
**Replies:** 0\
**Last updated:** [September 18, 2010, 11:33am UTC](https://www.ruby-forum.com/t/nil-when-calling-joins-method-on-model/195177 "2010-09-18T11:33:31Z")

</div>

I am trying to call the joins method on my model, but whenever I do, it always returns nil. I have the following database schema: ======================== ==== Host ==== id int …

---

## [Need help in filing Ruby on Rails Developer position in NY](https://www.ruby-forum.com/t/need-help-in-filing-ruby-on-rails-developer-position-in-ny/195179)

<div class="topic-metadata">

**Author:** [@sunil](https://www.ruby-forum.com/u/sunil)\
**Replies:** 0\
**Last updated:** [September 18, 2010, 11:33am UTC](https://www.ruby-forum.com/t/need-help-in-filing-ruby-on-rails-developer-position-in-ny/195179 "2010-09-18T11:33:31Z")

</div>

Request to contact me on removed\_email\_address@domain.invalid Dear Group Members, Could you please help me in filling the below position. We need Ruby on Rails Developer in NY – Long Term Rate: Open Required Skills: …

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

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