# Rails

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

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

---

## [FCGI & resetting view cache](https://www.ruby-forum.com/t/fcgi-resetting-view-cache/183596)

<div class="topic-metadata">

**Author:** [@brent](https://www.ruby-forum.com/u/brent)\
**Replies:** 3\
**Last updated:** [February 18, 2010, 1:31am UTC](https://www.ruby-forum.com/t/fcgi-resetting-view-cache/183596 "2010-02-18T01:31:17Z")

</div>

I’m running my rails app with FCGI. I updated a view and noticed it didn’t update the site. Deleted it and it even still shows up. I also tried “pkill -9 -f dispatch.fcgi”. I thought I had done this in the past with c…

---

## [Ensure single session per user](https://www.ruby-forum.com/t/ensure-single-session-per-user/183623)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 9\
**Last updated:** [February 18, 2010, 1:06am UTC](https://www.ruby-forum.com/t/ensure-single-session-per-user/183623 "2010-02-18T01:06:37Z")

</div>

Hey Everyone, I would like to add the ability to control that a single user can be logged in only once. In other words, if User “A” logs in and then another person with User “A” credentials logs in, it will destroy t…

---

## [Url rewriting](https://www.ruby-forum.com/t/url-rewriting/183628)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 1\
**Last updated:** [February 17, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/url-rewriting/183628 "2010-02-17T21:56:50Z")

</div>

I discovered Sanitize gem and it’s pretty good but one thing I can see is that if someone puts a URL in the body of text without markup, that would become a link that would drive the person who clicks the link off-sit…

---

## [I18n and routes in runnter script](https://www.ruby-forum.com/t/i18n-and-routes-in-runnter-script/183633)

<div class="topic-metadata">

**Author:** [@k-b](https://www.ruby-forum.com/u/k-b)\
**Replies:** 0\
**Last updated:** [February 17, 2010, 7:21pm UTC](https://www.ruby-forum.com/t/i18n-and-routes-in-runnter-script/183633 "2010-02-17T19:21:16Z")

</div>

Hi! We using rails 2.3.5 at the moment. We want to use namedroute\_url and i18n in a runner-script. Don’t find the packages which provide me these things. Tried stuff like extend ActionController::PolymorphicRoutes …

---

## [Need advise with search / browsing](https://www.ruby-forum.com/t/need-advise-with-search-browsing/183578)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 2\
**Last updated:** [February 17, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/need-advise-with-search-browsing/183578 "2010-02-17T19:11:55Z")

</div>

hi, have a JOB-model, which belongs\_to a variety of other models, eg: Industry, Category etc… i have: ###################### controller: def browse @jobs = Job.all @jobind = JobIndustry.all @jobcat = JobCategory.…

---

## [Great Lakes Ruby Bash - Call for Proposals](https://www.ruby-forum.com/t/great-lakes-ruby-bash-call-for-proposals/183631)

<div class="topic-metadata">

**Author:** [@brandonpt](https://www.ruby-forum.com/u/brandonpt)\
**Replies:** 0\
**Last updated:** [February 17, 2010, 6:36pm UTC](https://www.ruby-forum.com/t/great-lakes-ruby-bash-call-for-proposals/183631 "2010-02-17T18:36:12Z")

</div>

We are pleased to announce that we are accepting talk proposals for the Great Lakes Ruby Bash to be held on Michigan State University’s campus in East Lansing, Michigan on Saturday, April 17th. http://greatlakesru…

---

## [Back button](https://www.ruby-forum.com/t/back-button/183602)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 5\
**Last updated:** [February 17, 2010, 5:57pm UTC](https://www.ruby-forum.com/t/back-button/183602 "2010-02-17T17:57:29Z")

</div>

Is there a way to implement a button that has exactly the same behavior as the browser’s back button?

---

## [Memcached](https://www.ruby-forum.com/t/memcached/183590)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 3\
**Last updated:** [February 17, 2010, 5:49pm UTC](https://www.ruby-forum.com/t/memcached/183590 "2010-02-17T17:49:57Z")

</div>

Hi guys, I remember using memcached in the past, but after the 2.1 release I can’t figure out how I’m suppose to configured it with different environments. Cache\_fu had a memcached.yml in config/, but I can’t find how…

---

## [Ruby update on OS X 10.5 and I now this: "Rails requires RubyGems \>= 1.3.2"](https://www.ruby-forum.com/t/ruby-update-on-os-x-10-5-and-i-now-this-rails-requires-rubygems-1-3-2/183607)

<div class="topic-metadata">

**Author:** [@Grary](https://www.ruby-forum.com/u/Grary)\
**Replies:** 7\
**Last updated:** [February 17, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/ruby-update-on-os-x-10-5-and-i-now-this-rails-requires-rubygems-1-3-2/183607 "2010-02-17T17:27:08Z")

</div>

Hi all, I’ve seen other messages on this problem, but I still can’t get back to working with Rails after using MacPorts to install a recent version of ruby on my mac OS X 10.5 (ruby 1.8.7.) I’m getting: “Rails requir…

---

## [Rails/Rake Migrations - Newbie Question](https://www.ruby-forum.com/t/rails-rake-migrations-newbie-question/183620)

<div class="topic-metadata">

**Author:** [@lukas](https://www.ruby-forum.com/u/lukas)\
**Replies:** 2\
**Last updated:** [February 17, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/rails-rake-migrations-newbie-question/183620 "2010-02-17T15:17:41Z")

</div>

Hello, I have a problem understanding Rails/Rake migrations. For example let’s say I have a migrate-script like this: class CreateUsers \< ActiveRecord::Migration def self.up create\_table :users do |t| t.string :nam…

---

## [Active record validation Issue](https://www.ruby-forum.com/t/active-record-validation-issue/183492)

<div class="topic-metadata">

**Author:** [@sakhi](https://www.ruby-forum.com/u/sakhi)\
**Replies:** 5\
**Last updated:** [February 17, 2010, 12:23pm UTC](https://www.ruby-forum.com/t/active-record-validation-issue/183492 "2010-02-17T12:23:47Z")

</div>

Hello, I am trying to put some validation using active records onto form fields. like this - validates\_length\_of :tag\_list, :maximum =\> 2 When i provide value of tag\_list as “abc” then it gives the proper messag…

---

## [Blog analysis](https://www.ruby-forum.com/t/blog-analysis/183611)

<div class="topic-metadata">

**Author:** [@pitchu](https://www.ruby-forum.com/u/pitchu)\
**Replies:** 0\
**Last updated:** [February 17, 2010, 10:52am UTC](https://www.ruby-forum.com/t/blog-analysis/183611 "2010-02-17T10:52:28Z")

</div>

I’m looking for an analysis tool for blogs. Is an application available? I need to find how many blogs were created after a date. thanks

---

## [Appending parameters to a link](https://www.ruby-forum.com/t/appending-parameters-to-a-link/183588)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 2\
**Last updated:** [February 17, 2010, 10:33am UTC](https://www.ruby-forum.com/t/appending-parameters-to-a-link/183588 "2010-02-17T10:33:45Z")

</div>

Consider link = url\_for(:controller =\> “signed\_in”, :action =\> “show”, :id =\> “user\_info”) =\> /signed\_in/user\_info to which I wish to add the either or both of the following locale=en nickname=ralph Is there a nice…

---

## [Update association on foreign key change?](https://www.ruby-forum.com/t/update-association-on-foreign-key-change/183497)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 11\
**Last updated:** [February 17, 2010, 10:23am UTC](https://www.ruby-forum.com/t/update-association-on-foreign-key-change/183497 "2010-02-17T10:23:12Z")

</div>

I have two models, quiz and quiz\_question, where quiz\_question belongs to quiz. If i change the foreign key, the named association doesn’t update. Can i force it to? quiz\_question = QuizQuestion.last =\> #\<QuizQue…

---

## [Problem with file\_field](https://www.ruby-forum.com/t/problem-with-file-field/183603)

<div class="topic-metadata">

**Author:** [@gregm](https://www.ruby-forum.com/u/gregm)\
**Replies:** 2\
**Last updated:** [February 17, 2010, 10:20am UTC](https://www.ruby-forum.com/t/problem-with-file-field/183603 "2010-02-17T10:20:16Z")

</div>

Hi, I trying to do an upload form, bu the file\_field doesnt seem to work as it should. I can’t access the datafile properties… #form \<% form\_for @student, :url =\> { :action =\> “upload\_file”,:id=\>@student.id }, :mult…

---

## [Set route for rails](https://www.ruby-forum.com/t/set-route-for-rails/183609)

<div class="topic-metadata">

**Author:** [@mohit](https://www.ruby-forum.com/u/mohit)\
**Replies:** 1\
**Last updated:** [February 17, 2010, 10:03am UTC](https://www.ruby-forum.com/t/set-route-for-rails/183609 "2010-02-17T10:03:21Z")

</div>

How we can set routing for a controller book having function index I mean when i start the server it first run the index funxtion of a controller book like http://localhost:3000/ Thanks Mohit

---

## [\[JOBS\] Technical Architect who can use tech to make a difference :-)!](https://www.ruby-forum.com/t/jobs-technical-architect-who-can-use-tech-to-make-a-difference/183608)

<div class="topic-metadata">

**Author:** [@venkat](https://www.ruby-forum.com/u/venkat)\
**Replies:** 0\
**Last updated:** [February 17, 2010, 9:45am UTC](https://www.ruby-forum.com/t/jobs-technical-architect-who-can-use-tech-to-make-a-difference/183608 "2010-02-17T09:45:44Z")

</div>

GiveIndia needs a Senior Technologist: (based out of Mumbai) This is an excellent opportunity to use the latest web 2.0 tools and technologies to create change. The candidate will have the space and freedom to create …

---

## [How to add radio buttons?](https://www.ruby-forum.com/t/how-to-add-radio-buttons/183601)

<div class="topic-metadata">

**Author:** [@veena](https://www.ruby-forum.com/u/veena)\
**Replies:** 2\
**Last updated:** [February 17, 2010, 9:23am UTC](https://www.ruby-forum.com/t/how-to-add-radio-buttons/183601 "2010-02-17T09:23:30Z")

</div>

Hello friends, Can u plz tell me how we can add radio buttons in the view?

---

## [How to populate combobox from db?](https://www.ruby-forum.com/t/how-to-populate-combobox-from-db/183550)

<div class="topic-metadata">

**Author:** [@veena](https://www.ruby-forum.com/u/veena)\
**Replies:** 4\
**Last updated:** [February 17, 2010, 8:37am UTC](https://www.ruby-forum.com/t/how-to-populate-combobox-from-db/183550 "2010-02-17T08:37:50Z")

</div>

Hello Friends, I am a newbie in ROR. Can you plz tell me how to populate the combobox with data from db?If you could give both the view and controller part it would be helpful.I am using a Mysql database

---

## [OT - RoR Site Launch](https://www.ruby-forum.com/t/ot-ror-site-launch/183530)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [February 17, 2010, 5:13am UTC](https://www.ruby-forum.com/t/ot-ror-site-launch/183530 "2010-02-17T05:13:02Z")

</div>

OK - but it is built entirely on Ruby on Rails and with some very valuable help from this list… http://www.allasianmassage.com (a little rushed but seems to be pretty stable and pretty well debugged… no money/time fo…

---

## [Can't start Rails 2.3.5 under thin with Bundler 0.9](https://www.ruby-forum.com/t/cant-start-rails-2-3-5-under-thin-with-bundler-0-9/183599)

<div class="topic-metadata">

**Author:** [@mat\_b](https://www.ruby-forum.com/u/mat_b)\
**Replies:** 0\
**Last updated:** [February 17, 2010, 4:39am UTC](https://www.ruby-forum.com/t/cant-start-rails-2-3-5-under-thin-with-bundler-0-9/183599 "2010-02-17T04:39:40Z")

</div>

Hi, Just upgraded a Rails app to Bundler 0.9, and I can’t start it inside thin unless I actually include thin in the Gemfile as a dependency. Trying both ‘script/server thin’ and ‘thin start’. Since thin is an applic…

---

## [Controller won't accept a variable number of inputs](https://www.ruby-forum.com/t/controller-wont-accept-a-variable-number-of-inputs/183527)

<div class="topic-metadata">

**Author:** [@AlwaysCharging](https://www.ruby-forum.com/u/AlwaysCharging)\
**Replies:** 3\
**Last updated:** [February 17, 2010, 12:53am UTC](https://www.ruby-forum.com/t/controller-wont-accept-a-variable-number-of-inputs/183527 "2010-02-17T00:53:45Z")

</div>

I’m using Prototype to allow the user to add form fields dynamically. However, each field is the same model over and over again (think of it as allowing the user to create a lot of Blog posts at once). So I’m unable …

---

## [Subdomain creation and management](https://www.ruby-forum.com/t/subdomain-creation-and-management/183569)

<div class="topic-metadata">

**Author:** [@CiriusMex](https://www.ruby-forum.com/u/CiriusMex)\
**Replies:** 1\
**Last updated:** [February 17, 2010, 12:42am UTC](https://www.ruby-forum.com/t/subdomain-creation-and-management/183569 "2010-02-17T00:42:38Z")

</div>

Hello, I’m creating a webapplication where I would like to dinamically create and detect subdomains. Let’s say my webapplication url is www.wookie.com Here comes an exemple: Someone subscribe to the application with…

---

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

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 1\
**Last updated:** [February 17, 2010, 12:15am UTC](https://www.ruby-forum.com/t/form-for-adding-locale/183584 "2010-02-17T00:15:03Z")

</div>

\<% form\_for @countryToSearchFor, :url =\> { :action =\> “show”, :id =\> “connected\_to\_country” }, :html =\> {:method =\> :get} do |f| %\>

---

## [Form data transfer to another form with a different controle](https://www.ruby-forum.com/t/form-data-transfer-to-another-form-with-a-different-controle/183383)

<div class="topic-metadata">

**Author:** [@catalin](https://www.ruby-forum.com/u/catalin)\
**Replies:** 10\
**Last updated:** [February 16, 2010, 11:27pm UTC](https://www.ruby-forum.com/t/form-data-transfer-to-another-form-with-a-different-controle/183383 "2010-02-16T23:27:43Z")

</div>

Hi, Im just learning how Ruby on Rails works. So Im just wondering if you can transfer data from a form to another form with a different controller. I got a simple form like this on the ‘site’ controller: \<% form\_for…

---

## [12 Month Contract Assignment in New York City](https://www.ruby-forum.com/t/12-month-contract-assignment-in-new-york-city/183583)

<div class="topic-metadata">

**Author:** [@LenaRoR](https://www.ruby-forum.com/u/LenaRoR)\
**Replies:** 2\
**Last updated:** [February 16, 2010, 11:22pm UTC](https://www.ruby-forum.com/t/12-month-contract-assignment-in-new-york-city/183583 "2010-02-16T23:22:28Z")

</div>

Hello! I am looking for a ROR Developer for an immediate 12 mons Contract ONSITE assignment in NYC. If interested, please email word resume along with daytime contact # to removed\_email\_address@domain.invalid for fu…

---

## [Installing Plugins](https://www.ruby-forum.com/t/installing-plugins/183567)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 1\
**Last updated:** [February 16, 2010, 11:08pm UTC](https://www.ruby-forum.com/t/installing-plugins/183567 "2010-02-16T23:08:14Z")

</div>

Coming from Perl and familiar with CPAN, I’d like some info about installing plugins. Basically, do I trust where the libraries are installed? For example, I have installed the Liquid plugin (./script/plugin install …

---

## [Login with twitter, yahoo, google, facebook credentials](https://www.ruby-forum.com/t/login-with-twitter-yahoo-google-facebook-credentials/183526)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 9\
**Last updated:** [February 16, 2010, 10:37pm UTC](https://www.ruby-forum.com/t/login-with-twitter-yahoo-google-facebook-credentials/183526 "2010-02-16T22:37:27Z")

</div>

Does anyone know how to go about giving an option to login to a website with twitter, yahoo, google, facebook , … whatever credentials?

---

## [As\_json and self-referential associations](https://www.ruby-forum.com/t/as-json-and-self-referential-associations/183574)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 0\
**Last updated:** [February 16, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/as-json-and-self-referential-associations/183574 "2010-02-16T19:45:19Z")

</div>

Hi, I’m using the new(?) as\_json methods within a rest api I am working on. However I am not sure how you are supposed to, or whether it is designed to handle multiple variations of association inclusion. For exampl…

---

## [YAML, UTF-8, TextMate, Notepad](https://www.ruby-forum.com/t/yaml-utf-8-textmate-notepad/183522)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 7\
**Last updated:** [February 16, 2010, 7:32pm UTC](https://www.ruby-forum.com/t/yaml-utf-8-textmate-notepad/183522 "2010-02-16T19:32:20Z")

</div>

This is not a question but a report on the difficulties I had and the solution I found with respect to UTF-8, YAML::load, and Ruby/Rails. Comments are appreciated. I had been struggling for two days to get UTF-8 work…

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

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