# Rails

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

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

---

## [Map.connect will not create connect\_path and connect\_url?](https://www.ruby-forum.com/t/map-connect-will-not-create-connect-path-and-connect-url/190065)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [June 12, 2010, 1:47pm UTC](https://www.ruby-forum.com/t/map-connect-will-not-create-connect-path-and-connect-url/190065 "2010-06-12T13:47:53Z")

</div>

In Ruby on Rails, routes.rb, if we create a “named route” map.something ":a/:b", :controller =\> 'foobar' it will also create “something\_path” and “something\_url” which are two methods usable in the controller and in t…

---

## [Ruby on rails developer](https://www.ruby-forum.com/t/ruby-on-rails-developer/190067)

<div class="topic-metadata">

**Author:** [@amit\_bikram](https://www.ruby-forum.com/u/amit_bikram)\
**Replies:** 0\
**Last updated:** [June 12, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer/190067 "2010-06-12T13:18:02Z")

</div>

searching for ruby on rails job

---

## [ActionView::Base - can it dynamically select views?](https://www.ruby-forum.com/t/actionview-base-can-it-dynamically-select-views/189942)

<div class="topic-metadata">

**Author:** [@Owain](https://www.ruby-forum.com/u/Owain)\
**Replies:** 2\
**Last updated:** [June 12, 2010, 12:35pm UTC](https://www.ruby-forum.com/t/actionview-base-can-it-dynamically-select-views/189942 "2010-06-12T12:35:53Z")

</div>

There are some similar discussions about but none seem to have a definitive answer of this one. I have an application which supports multiple domains. In the application controller I look up the domain being requeste…

---

## [Rails3 installtion help](https://www.ruby-forum.com/t/rails3-installtion-help/190062)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [June 12, 2010, 10:51am UTC](https://www.ruby-forum.com/t/rails3-installtion-help/190062 "2010-06-12T10:51:43Z")

</div>

Ruby and rails version already on my system were 1.8.6 and 2.3.5 repectively. And I followed railscast 200 .Everything I did as root. I am on fedora11 As an example if do rvm 1.9.1 --default and then ruby -v I…

---

## [How to raise a 403 error?](https://www.ruby-forum.com/t/how-to-raise-a-403-error/190051)

<div class="topic-metadata">

**Author:** [@mosh](https://www.ruby-forum.com/u/mosh)\
**Replies:** 2\
**Last updated:** [June 12, 2010, 10:45am UTC](https://www.ruby-forum.com/t/how-to-raise-a-403-error/190051 "2010-06-12T10:45:04Z")

</div>

Hello all, I am working on Rails 3, and I would like to return a forbidden error message from a controller. I had trying something like that: def my\_action respond\_to do |format| format.html { redirect\_to(login\_pat…

---

## [How do I pass interpolation variables to AR validations?](https://www.ruby-forum.com/t/how-do-i-pass-interpolation-variables-to-ar-validations/190033)

<div class="topic-metadata">

**Author:** [@clashcityrocker](https://www.ruby-forum.com/u/clashcityrocker)\
**Replies:** 1\
**Last updated:** [June 12, 2010, 9:44am UTC](https://www.ruby-forum.com/t/how-do-i-pass-interpolation-variables-to-ar-validations/190033 "2010-06-12T09:44:52Z")

</div>

(Rails 2.3.8) Say I have in config/locales/en.yml: en: activerecord: attributes: foo: bar: ‘Long%{br}name’ Now, in HTML I can do: t(:‘activerecord.attributes.foo.bar’, :br =\> ‘ ’) and in LaTeX: t(:‘activerecord…

---

## [Ckeditor "Browse Server"](https://www.ruby-forum.com/t/ckeditor-browse-server/189421)

<div class="topic-metadata">

**Author:** [@nu2rails](https://www.ruby-forum.com/u/nu2rails)\
**Replies:** 2\
**Last updated:** [June 12, 2010, 3:26am UTC](https://www.ruby-forum.com/t/ckeditor-browse-server/189421 "2010-06-12T03:26:23Z")

</div>

I started with the ckeditor rails demo and everything worked beautifully. Then I deployed a couple of sites using a heavily customized “Easy” toolbar and everything works great. In these instances I completely disab…

---

## [AR after\_initialize quandry](https://www.ruby-forum.com/t/ar-after-initialize-quandry/190047)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [June 12, 2010, 12:20am UTC](https://www.ruby-forum.com/t/ar-after-initialize-quandry/190047 "2010-06-12T00:20:54Z")

</div>

I have a case where I am abstracting the creation of models. After a fair bit of indirection, I eventually get around to making a .new call. I need to be able to pass params to that .new call. I know I can’t use def i…

---

## [Problem: passing post parameters to a controller](https://www.ruby-forum.com/t/problem-passing-post-parameters-to-a-controller/190044)

<div class="topic-metadata">

**Author:** [@max-you](https://www.ruby-forum.com/u/max-you)\
**Replies:** 2\
**Last updated:** [June 12, 2010, 12:16am UTC](https://www.ruby-forum.com/t/problem-passing-post-parameters-to-a-controller/190044 "2010-06-12T00:16:34Z")

</div>

Hi, I have a problem passing parameters via post. I’ve examined the log file of a scaffolded version against my AJAX version and can’t figure out what’s wrong. I think I’ve also isolated the problem to be parameter pa…

---

## [Session active\_record\_store](https://www.ruby-forum.com/t/session-active-record-store/190009)

<div class="topic-metadata">

**Author:** [@nick](https://www.ruby-forum.com/u/nick)\
**Replies:** 4\
**Last updated:** [June 11, 2010, 11:55pm UTC](https://www.ruby-forum.com/t/session-active-record-store/190009 "2010-06-11T23:55:06Z")

</div>

I attempted to make a toy rails 2.3.5 application in Debian ‘squeeze’ that uses the database to store sessions. My environment.rb is require File.join(File.dirname(FILE), ‘boot’) Rails::Initializer.run do |config| c…

---

## [How to get data from other website?](https://www.ruby-forum.com/t/how-to-get-data-from-other-website/190012)

<div class="topic-metadata">

**Author:** [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Replies:** 10\
**Last updated:** [June 11, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/how-to-get-data-from-other-website/190012 "2010-06-11T23:05:56Z")

</div>

Hi, everybody. I am newbie RoR. I want to get all data from other website. Thanks a lot and looking forward.

---

## [Nested form & habtm](https://www.ruby-forum.com/t/nested-form-habtm/190040)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/nested-form-habtm/190040 "2010-06-11T22:23:14Z")

</div>

so i am trying to save to a join table in a habtm relationship, but i am having problems. from my view, i pass in a group id with: = link\_to “Create New User”, new\_user\_url(:group =\> 1) User model (user.rb) class Us…

---

## [Trying to link to edit from a different form](https://www.ruby-forum.com/t/trying-to-link-to-edit-from-a-different-form/190037)

<div class="topic-metadata">

**Author:** [@mcmillhj](https://www.ruby-forum.com/u/mcmillhj)\
**Replies:** 1\
**Last updated:** [June 11, 2010, 9:23pm UTC](https://www.ruby-forum.com/t/trying-to-link-to-edit-from-a-different-form/190037 "2010-06-11T21:23:06Z")

</div>

Hey everyone, I am currently writing a Bet program, which consists of 5 forms, a home form and a form for all of my tables. I am trying to use the button\_to command to link from the home controller/index to another fo…

---

## [How to find models that have at least one associated has\_many](https://www.ruby-forum.com/t/how-to-find-models-that-have-at-least-one-associated-has-many/190041)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 3\
**Last updated:** [June 11, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/how-to-find-models-that-have-at-least-one-associated-has-many/190041 "2010-06-11T21:15:19Z")

</div>

I’m having a senior moment. I’ve done this before but I can’t remember how. Two active record models, Foo belongs\_to Bar Bar has\_many Foos I want to find all Bars that have at least one Foo, is it: Bar.all(:includ…

---

## [Remarkable 4.0.0.alpha4 (pre-release) now available](https://www.ruby-forum.com/t/remarkable-4-0-0-alpha4-pre-release-now-available/190039)

<div class="topic-metadata">

**Author:** [@hosh](https://www.ruby-forum.com/u/hosh)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 9:11pm UTC](https://www.ruby-forum.com/t/remarkable-4-0-0-alpha4-pre-release-now-available/190039 "2010-06-11T21:11:12Z")

</div>

Why Upgrade: You want to use this with Rails 3.0 Beta 4 Please keep in mind: remarkable/core, remarkable/active\_model, and remarkable/active\_record works. remarkable/rails does not work. There are some other devel…

---

## [Ruby DateTime arithmetic question](https://www.ruby-forum.com/t/ruby-datetime-arithmetic-question/189926)

<div class="topic-metadata">

**Author:** [@Clay\_H](https://www.ruby-forum.com/u/Clay_H)\
**Replies:** 2\
**Last updated:** [June 11, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/ruby-datetime-arithmetic-question/189926 "2010-06-11T20:41:21Z")

</div>

I have ~ 200,000 rows in a csv file that I need to parse. They are time stamped and are supposed to all be 10 minutes apart from each other. The format of the file is: … 1,05/31/2006 18:08,101 1,05/31/2006 18:18,102 …

---

## [TCP Sockets](https://www.ruby-forum.com/t/tcp-sockets/190001)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 5\
**Last updated:** [June 11, 2010, 7:19pm UTC](https://www.ruby-forum.com/t/tcp-sockets/190001 "2010-06-11T19:19:58Z")

</div>

I am trying to interface to an API. I am instructed to use the server and port information provided to setup a TCP socket. I did that like this: require 'socket' my\_socket=TCPSocket::open("ip","port") Where “ip” …

---

## [How to get data from website load with ajax?](https://www.ruby-forum.com/t/how-to-get-data-from-website-load-with-ajax/190029)

<div class="topic-metadata">

**Author:** [@vuonghung12a2](https://www.ruby-forum.com/u/vuonghung12a2)\
**Replies:** 3\
**Last updated:** [June 11, 2010, 7:15pm UTC](https://www.ruby-forum.com/t/how-to-get-data-from-website-load-with-ajax/190029 "2010-06-11T19:15:17Z")

</div>

Hi all, I want to get data from website load with Ajax. Looking forward soon. Thanks all.

---

## [Use of Include and Join together](https://www.ruby-forum.com/t/use-of-include-and-join-together/190031)

<div class="topic-metadata">

**Author:** [@jschroe212](https://www.ruby-forum.com/u/jschroe212)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 6:36pm UTC](https://www.ruby-forum.com/t/use-of-include-and-join-together/190031 "2010-06-11T18:36:04Z")

</div>

Hello, I’m wondering if anyone can help me understand what the expected behavior would be if i were to use include and joins together on the same association. I know from a straight rails perspective that it would b…

---

## [Newbie w. quick question on accessors in ActionController](https://www.ruby-forum.com/t/newbie-w-quick-question-on-accessors-in-actioncontroller/190023)

<div class="topic-metadata">

**Author:** [@Lille](https://www.ruby-forum.com/u/Lille)\
**Replies:** 2\
**Last updated:** [June 11, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/newbie-w-quick-question-on-accessors-in-actioncontroller/190023 "2010-06-11T17:07:39Z")

</div>

Hi, Can someone please confirm that accessors cannot be used in ActionController to ‘persist’ values between requests, at least, not without persisting to the database? I’m trying to minimize AJAX calls by storing in…

---

## [REST design question](https://www.ruby-forum.com/t/rest-design-question/190022)

<div class="topic-metadata">

**Author:** [@orotone](https://www.ruby-forum.com/u/orotone)\
**Replies:** 1\
**Last updated:** [June 11, 2010, 4:13pm UTC](https://www.ruby-forum.com/t/rest-design-question/190022 "2010-06-11T16:13:20Z")

</div>

I have an Item class with archive(), remove(), report() and suspend() methods. I’m trying to decide how to map controllers and actions to each of those methods. I can create a separate resource for each method: resou…

---

## [Problem using Ruby On Rails with rspec to write user stories](https://www.ruby-forum.com/t/problem-using-ruby-on-rails-with-rspec-to-write-user-stories/190018)

<div class="topic-metadata">

**Author:** [@sebastianzillessen](https://www.ruby-forum.com/u/sebastianzillessen)\
**Replies:** 2\
**Last updated:** [June 11, 2010, 3:31pm UTC](https://www.ruby-forum.com/t/problem-using-ruby-on-rails-with-rspec-to-write-user-stories/190018 "2010-06-11T15:31:33Z")

</div>

Hej out there, i’m a newbie on ror and im trying to install rspec on my computer. I installed rspec an rspec-rails via gem. when i’m running the file script/generate rspec it works. but i have no folder called storie…

---

## ["no route matches"](https://www.ruby-forum.com/t/no-route-matches/190019)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 4\
**Last updated:** [June 11, 2010, 3:03pm UTC](https://www.ruby-forum.com/t/no-route-matches/190019 "2010-06-11T15:03:27Z")

</div>

Hi all, I’m getting an error in my rails 3 app when trying to update a user’s profile: Started POST “/users/1328-mturner” for 127.0.0.1 at 2010-06-11 13:02:09 ActionController::RoutingError (No route matches “/users…

---

## [Gem update fails on make sqlite3](https://www.ruby-forum.com/t/gem-update-fails-on-make-sqlite3/189963)

<div class="topic-metadata">

**Author:** [@arvliet](https://www.ruby-forum.com/u/arvliet)\
**Replies:** 3\
**Last updated:** [June 11, 2010, 1:01pm UTC](https://www.ruby-forum.com/t/gem-update-fails-on-make-sqlite3/189963 "2010-06-11T13:01:06Z")

</div>

Anyone have any idea how to interpret this? I’ve been at it for an hour and I’m not getting anywhere. Doesn’t seem to be any other instances of this online either. User: root OS: CentOS 5.4 (up to date as of 201006…

---

## ["translation missing" errors in production, not in development](https://www.ruby-forum.com/t/translation-missing-errors-in-production-not-in-development/190015)

<div class="topic-metadata">

**Author:** [@Meike](https://www.ruby-forum.com/u/Meike)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 11:42am UTC](https://www.ruby-forum.com/t/translation-missing-errors-in-production-not-in-development/190015 "2010-06-11T11:42:39Z")

</div>

Hello, I’ve got a similar problem to this one: http://groups.google.com/group/rails-i18n/browse\_thread/thread/cce36deb0fb6dab3/bef233bf198bfe8f?lnk=gst&q=production+development#bef233bf198bfe8f Tranlations are working…

---

## [Re: Rails 2.3 I18n and localized mailer templates](https://www.ruby-forum.com/t/re-rails-2-3-i18n-and-localized-mailer-templates/190011)

<div class="topic-metadata">

**Author:** [@n1k](https://www.ruby-forum.com/u/n1k)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 11:16am UTC](https://www.ruby-forum.com/t/re-rails-2-3-i18n-and-localized-mailer-templates/190011 "2010-06-11T11:16:54Z")

</div>

Hi, is there any progress in this? I found it very uncomfortable to pass interpolation twice. Once in Mailer model and second time in mailer’s template to the I18n engine. This way with naming templates according to …

---

## [Rendering time](https://www.ruby-forum.com/t/rendering-time/190008)

<div class="topic-metadata">

**Author:** [@sandeep\_mondal](https://www.ruby-forum.com/u/sandeep_mondal)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 10:16am UTC](https://www.ruby-forum.com/t/rendering-time/190008 "2010-06-11T10:16:00Z")

</div>

in my rails application i am search thru tables…based on a criteria…and then return the result in form of an xml document… i have tried using Rexml::builder and also Nokigiri::builder and still i am not able to reduce…

---

## [Javascript\_include\_tag and stylesheet\_link\_tag additional generated parameters](https://www.ruby-forum.com/t/javascript-include-tag-and-stylesheet-link-tag-additional-generated-parameters/189964)

<div class="topic-metadata">

**Author:** [@polunochnik](https://www.ruby-forum.com/u/polunochnik)\
**Replies:** 2\
**Last updated:** [June 11, 2010, 10:16am UTC](https://www.ruby-forum.com/t/javascript-include-tag-and-stylesheet-link-tag-additional-generated-parameters/189964 "2010-06-11T10:16:00Z")

</div>

Hi. I just wonder why do the javascript\_include\_tag and stylesheet\_link\_tag methods generate additional parameters and add them to the paths on output? For example, I have the following view: app/views/test.haml %ht…

---

## [The Depot application error](https://www.ruby-forum.com/t/the-depot-application-error/124750)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 9\
**Last updated:** [June 11, 2010, 6:47am UTC](https://www.ruby-forum.com/t/the-depot-application-error/124750 "2010-06-11T06:47:40Z")

</div>

Hello, I am new to RoR; I am trying to follow the Pragmatic programmer’s Depot application. In the Iteration A1: Get something running - I am following all the steps as listed - Create a Rails application using ‘Ra…

---

## [Rails returning session of another user](https://www.ruby-forum.com/t/rails-returning-session-of-another-user/197047)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [June 11, 2010, 3:35am UTC](https://www.ruby-forum.com/t/rails-returning-session-of-another-user/197047 "2010-06-11T03:35:42Z")

</div>

Running Jruby1.4.0, Rails 2.3.5, Tomcat 5.5, Java 1.6 We are getting reports that when a user logs in they are getting the session of another user. We are unclear how this could happen. One suspicion is a potentia…

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

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