# Rails

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

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

---

## [CookieOverflow - 4k Session?](https://www.ruby-forum.com/t/cookieoverflow-4k-session/142593)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 9, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/cookieoverflow-4k-session/142593 "2008-07-09T15:51:24Z")

</div>

Hello all, I get the following error when I stuff my seesion with more than 4k of data. CGI::Session::CookieStore::CookieOverflow My problem is that I obviously need a fatter session. How do other users by-pass the …

---

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

<div class="topic-metadata">

**Author:** [@chil](https://www.ruby-forum.com/u/chil)\
**Replies:** 1\
**Last updated:** [July 9, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/will-paginate-and-order/142256 "2008-07-09T15:48:55Z")

</div>

Hi! I would like to code a kind of ‘forum’. I’m using will\_paginate and I would like my topics to be order by the newest answer by topic. For the moment I have: in my controller: @categorie = Categoriemessage.find…

---

## [Select helper still the worth thing in rails](https://www.ruby-forum.com/t/select-helper-still-the-worth-thing-in-rails/142543)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [July 9, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/select-helper-still-the-worth-thing-in-rails/142543 "2008-07-09T15:46:59Z")

</div>

I have been trying all the day to make it happen, initial display is fine , but I cannot redisplay the selected value once the choice is done in my select helper I setup my slector in a helper (need to include the fi…

---

## [Dispatcher.reset\_application! alternative in RoR 2](https://www.ruby-forum.com/t/dispatcher-reset-application-alternative-in-ror-2/142586)

<div class="topic-metadata">

**Author:** [@reggieb](https://www.ruby-forum.com/u/reggieb)\
**Replies:** 2\
**Last updated:** [July 9, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/dispatcher-reset-application-alternative-in-ror-2/142586 "2008-07-09T15:46:00Z")

</div>

In console mode, I used to be able to reset everything (to test changes in models for example) by using the Dispatcher method ‘reset\_application!’. That is, if I was testing the functionality of a model using the cons…

---

## [POST instead of GET gives 404 (newbie)](https://www.ruby-forum.com/t/post-instead-of-get-gives-404-newbie/142495)

<div class="topic-metadata">

**Author:** [@Birgit\_SWesthawk](https://www.ruby-forum.com/u/Birgit_SWesthawk)\
**Replies:** 8\
**Last updated:** [July 9, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/post-instead-of-get-gives-404-newbie/142495 "2008-07-09T15:32:06Z")

</div>

Hi, Using JRuby 1.1 and Rails 2.0, I created a small project in NetBeans that allows me to generate a dynamic dialplan in XML. In case it matters, I’m using builder-2.1.2 and activerecord-2.0.2. Going in the browser …

---

## [Thumbnail image](https://www.ruby-forum.com/t/thumbnail-image/142583)

<div class="topic-metadata">

**Author:** [@jaiganez](https://www.ruby-forum.com/u/jaiganez)\
**Replies:** 3\
**Last updated:** [July 9, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/thumbnail-image/142583 "2008-07-09T14:47:40Z")

</div>

is there link to guide for creating thumbnail image …

---

## [Problem with scaffolding?](https://www.ruby-forum.com/t/problem-with-scaffolding/142466)

<div class="topic-metadata">

**Author:** [@prabhas](https://www.ruby-forum.com/u/prabhas)\
**Replies:** 5\
**Last updated:** [July 9, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/problem-with-scaffolding/142466 "2008-07-09T14:45:19Z")

</div>

Hi, I am using scaffolding to create application quickly. I have already created the database and table (there is only one table: products). When I use command: ruby script/generate scaffold Product I get all the scr…

---

## [Redirection in ruby](https://www.ruby-forum.com/t/redirection-in-ruby/142591)

<div class="topic-metadata">

**Author:** [@jokrish](https://www.ruby-forum.com/u/jokrish)\
**Replies:** 0\
**Last updated:** [July 9, 2008, 2:30pm UTC](https://www.ruby-forum.com/t/redirection-in-ruby/142591 "2008-07-09T14:30:34Z")

</div>

i have a project creation module.I want go to another link from new(projects) to add new customer in my new project page.than come back and continue filling the remaining fields.but the problem is i can’t come back t…

---

## [Tips for providing multiple layouts in a multisite environment (aka the SaaS holy grail)](https://www.ruby-forum.com/t/tips-for-providing-multiple-layouts-in-a-multisite-environment-aka-the-saas-holy-grail/142590)

<div class="topic-metadata">

**Author:** [@mlangenberg](https://www.ruby-forum.com/u/mlangenberg)\
**Replies:** 0\
**Last updated:** [July 9, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/tips-for-providing-multiple-layouts-in-a-multisite-environment-aka-the-saas-holy-grail/142590 "2008-07-09T14:28:28Z")

</div>

One of the apps I’m working on is a SaaS solution for an online product catalog. Every catalog has it’s own domain and can be accessed as if it’s a site on its own (www.client\_a.com and www.client\_b.com are both serve…

---

## [Implementation of Domain Keys in Rails](https://www.ruby-forum.com/t/implementation-of-domain-keys-in-rails/142585)

<div class="topic-metadata">

**Author:** [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Replies:** 0\
**Last updated:** [July 9, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/implementation-of-domain-keys-in-rails/142585 "2008-07-09T13:07:44Z")

</div>

Hi All, I am looking for implementing domain keys for authenticating outgoing mails through my rails application to prevent the mails going in spams. I am using SMTP for sending mails using Action Mailer through my …

---

## [Auto Postback in Ruby On Rails](https://www.ruby-forum.com/t/auto-postback-in-ruby-on-rails/142580)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 4\
**Last updated:** [July 9, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/auto-postback-in-ruby-on-rails/142580 "2008-07-09T12:49:22Z")

</div>

in some other language have a concept e.i “auto postback” So, in Ruby on rails is there any such option e.i “auto postback” or same as “auto postback” basically what i want ot do is that i have 2 select box One for …

---

## [Probl;ems with Rails 2.1.0](https://www.ruby-forum.com/t/probl-ems-with-rails-2-1-0/142574)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 4\
**Last updated:** [July 9, 2008, 12:31pm UTC](https://www.ruby-forum.com/t/probl-ems-with-rails-2-1-0/142574 "2008-07-09T12:31:43Z")

</div>

i just install the Ruby on Rails 2.1.0… But i faced lots of problem… is there any way to install Ruby On Rails 2.0.2 thanking you

---

## [Specs run individually pass, but fail on rake spec?](https://www.ruby-forum.com/t/specs-run-individually-pass-but-fail-on-rake-spec/142561)

<div class="topic-metadata">

**Author:** [@galeal](https://www.ruby-forum.com/u/galeal)\
**Replies:** 3\
**Last updated:** [July 9, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/specs-run-individually-pass-but-fail-on-rake-spec/142561 "2008-07-09T12:04:25Z")

</div>

When I run specs individually: ruby /path/to/spec.rb it will pass. However, its more likely to fail when I run rake spec Does anyone know why that is, am I doing something wrong? TIA, Luke

---

## [Overriding has\_many :through](https://www.ruby-forum.com/t/overriding-has-many-through/142473)

<div class="topic-metadata">

**Author:** [@richardfairhurst](https://www.ruby-forum.com/u/richardfairhurst)\
**Replies:** 2\
**Last updated:** [July 9, 2008, 11:34am UTC](https://www.ruby-forum.com/t/overriding-has-many-through/142473 "2008-07-09T11:34:55Z")

</div>

Hi! I have two classes, ‘node’ and ‘way’, linked by ‘way\_node’. It’s a fairly straightforward relationship: node: has\_many :way\_nodes has\_many :ways, :through =\> :way\_nodes way: has\_many :way\_nodes, :foreign\_key =\>…

---

## [How do I insert a ruby variable into a div](https://www.ruby-forum.com/t/how-do-i-insert-a-ruby-variable-into-a-div/142557)

<div class="topic-metadata">

**Author:** [@sheepfunk](https://www.ruby-forum.com/u/sheepfunk)\
**Replies:** 2\
**Last updated:** [July 9, 2008, 11:11am UTC](https://www.ruby-forum.com/t/how-do-i-insert-a-ruby-variable-into-a-div/142557 "2008-07-09T11:11:47Z")

</div>

I want to use divs that resize based on the presence of certain ruby variables. How would I insert my size variable into a div like this \<% @width = 30 %\> \<%= “\<div id=‘inner\_meal\_pan\_overview’ width=‘100%’ style=“…

---

## [Show SQL request without issuing it](https://www.ruby-forum.com/t/show-sql-request-without-issuing-it/142493)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 6\
**Last updated:** [July 9, 2008, 10:37am UTC](https://www.ruby-forum.com/t/show-sql-request-without-issuing-it/142493 "2008-07-09T10:37:29Z")

</div>

Hi all, I saw that some object.save is causing the SQL request to crash, but I don’t see the SQL request in the logs (only ruby code that’s showing an error during the .save method). Is there any way to show the SQL …

---

## [Render file in index](https://www.ruby-forum.com/t/render-file-in-index/142562)

<div class="topic-metadata">

**Author:** [@torso](https://www.ruby-forum.com/u/torso)\
**Replies:** 1\
**Last updated:** [July 9, 2008, 10:25am UTC](https://www.ruby-forum.com/t/render-file-in-index/142562 "2008-07-09T10:25:46Z")

</div>

Hi I am trying to render file in controller like this : def index render :flie =\> ‘app\\views\\upload\\uploadfile.html.erb’ end It still complains that template is missing. Template is missing Missing template upload…

---

## [Apache, Mongrel proxy issue](https://www.ruby-forum.com/t/apache-mongrel-proxy-issue/142569)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 0\
**Last updated:** [July 9, 2008, 10:00am UTC](https://www.ruby-forum.com/t/apache-mongrel-proxy-issue/142569 "2008-07-09T10:00:03Z")

</div>

So I have apache set up as: \<Proxy balancer://mongrel\_cluster\> BalancerMember http://127.0.0.1:8000 BalancerMember http://127.0.0.1:8001 BalancerMember http://127.0.0.1:8002 BalancerMember http://127.0.0.1:8003 E…

---

## [Routing](https://www.ruby-forum.com/t/routing/142560)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 1\
**Last updated:** [July 9, 2008, 8:20am UTC](https://www.ruby-forum.com/t/routing/142560 "2008-07-09T08:20:02Z")

</div>

Hi All, I had a problem in routing. What I want is once I start the server and in the browser when I type " http://localhost:3000 " IT SHOULD NOT SHOW THE RAILS page instead it should go directly to my application…

---

## [Deploying Rails 2.02 app with Cap 2.2 - PID file problems](https://www.ruby-forum.com/t/deploying-rails-2-02-app-with-cap-2-2-pid-file-problems/142552)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [July 9, 2008, 4:17am UTC](https://www.ruby-forum.com/t/deploying-rails-2-02-app-with-cap-2-2-pid-file-problems/142552 "2008-07-09T04:17:09Z")

</div>

I’m deploying using the recipes laid out in Agile Development w/ Rails. My app was deploying fine for about 3 months, now I have problems with PID files. I get this error during the deploy: \*\*\* \[err :: xx.xxx.xx.xxx…

---

## [Stack Too Deep](https://www.ruby-forum.com/t/stack-too-deep/142492)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 4\
**Last updated:** [July 9, 2008, 3:07am UTC](https://www.ruby-forum.com/t/stack-too-deep/142492 "2008-07-09T03:07:50Z")

</div>

I am using redirect\_to :back for my login form. It works perfectly. However when I ran some tests I got errors. No HTTP\_REFERER was set in the request to this action,so redirect\_to :back could not be called successf…

---

## [Joins with paginate syntax problem](https://www.ruby-forum.com/t/joins-with-paginate-syntax-problem/142549)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 0\
**Last updated:** [July 9, 2008, 3:02am UTC](https://www.ruby-forum.com/t/joins-with-paginate-syntax-problem/142549 "2008-07-09T03:02:10Z")

</div>

First, let me just say “YES, I KNOW, I SHOULD BE USING WILL PAGINGATE INSTEAD”. Now, with that out of the way, and assuming that I have some reason (stubornness, laziness, whatever) to keep using paginate on this old …

---

## [SpatialAssociations Plugin](https://www.ruby-forum.com/t/spatialassociations-plugin/142547)

<div class="topic-metadata">

**Author:** [@bspaulding](https://www.ruby-forum.com/u/bspaulding)\
**Replies:** 0\
**Last updated:** [July 9, 2008, 2:49am UTC](https://www.ruby-forum.com/t/spatialassociations-plugin/142547 "2008-07-09T02:49:02Z")

</div>

As part of a location-aware project I’ve been working on, I’ve started work on this SpatialAssociations plugin. It provides model helpers like ‘has\_many’ and ‘belongs\_to’ for spatial associations, those whose results …

---

## [How to get a default blank for select\_date?](https://www.ruby-forum.com/t/how-to-get-a-default-blank-for-select-date/142534)

<div class="topic-metadata">

**Author:** [@stevel](https://www.ruby-forum.com/u/stevel)\
**Replies:** 4\
**Last updated:** [July 9, 2008, 2:46am UTC](https://www.ruby-forum.com/t/how-to-get-a-default-blank-for-select-date/142534 "2008-07-09T02:46:41Z")

</div>

I’m trying to get a blank date as the default when using the select\_date helper as follows: select\_date Date.today, :prefix =\> ‘startdate’, :order =\> \[:month, :day, :year\], :include\_blank =\> true This gives me the cu…

---

## [New to Scaffolding](https://www.ruby-forum.com/t/new-to-scaffolding/142539)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 1\
**Last updated:** [July 9, 2008, 2:34am UTC](https://www.ruby-forum.com/t/new-to-scaffolding/142539 "2008-07-09T02:34:52Z")

</div>

I typed ruby C:\\RailsApps\\app\\script\\generate scaffold users It showed the list of exists… creates… I try to access http://localhost:4000/users And the page has: Routing Error No route matches “/users” with {:method…

---

## [RESTful ACL Question (get an error author not found)](https://www.ruby-forum.com/t/restful-acl-question-get-an-error-author-not-found/142406)

<div class="topic-metadata">

**Author:** [@rafael](https://www.ruby-forum.com/u/rafael)\
**Replies:** 8\
**Last updated:** [July 9, 2008, 2:26am UTC](https://www.ruby-forum.com/t/restful-acl-question-get-an-error-author-not-found/142406 "2008-07-09T02:26:18Z")

</div>

Hi everybody, hope somebody can help me. I always get this error, even every relation is set in the models: NameError Exception: undefined local variable or method \`author’ as soon as I do something like this, it wor…

---

## [\[ANN\] Classy Inheritance 0.5.0](https://www.ruby-forum.com/t/ann-classy-inheritance-0-5-0/142546)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [July 9, 2008, 2:16am UTC](https://www.ruby-forum.com/t/ann-classy-inheritance-0-5-0/142546 "2008-07-09T02:16:21Z")

</div>

About: http://stonean.com/wiki/classy-inheritance Classy Inheritance simplifies the definition and implementation of one object depending on another object. For example, a User object depending on a Person object. …

---

## [Ar\_sendmail is not sending email from the email table with ARMailer](https://www.ruby-forum.com/t/ar-sendmail-is-not-sending-email-from-the-email-table-with-armailer/142535)

<div class="topic-metadata">

**Author:** [@LAB](https://www.ruby-forum.com/u/LAB)\
**Replies:** 7\
**Last updated:** [July 9, 2008, 2:12am UTC](https://www.ruby-forum.com/t/ar-sendmail-is-not-sending-email-from-the-email-table-with-armailer/142535 "2008-07-09T02:12:51Z")

</div>

I am using the ar\_mailer gem. I have been able to get emails into my newly created emails table, but when I run ar\_sendmail to actually send the messages from the table, absolutely nothing happens. I run “ar\_sendmai…

---

## [Need to turn off ALL caching in production environment](https://www.ruby-forum.com/t/need-to-turn-off-all-caching-in-production-environment/142545)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [July 9, 2008, 2:08am UTC](https://www.ruby-forum.com/t/need-to-turn-off-all-caching-in-production-environment/142545 "2008-07-09T02:08:45Z")

</div>

I’m deploying to a production environment to show a client progress on a site, but it’s being cached strangely. Here is my production.rb: Settings specified here will take precedence over those in config/ environment…

---

## [Undefined method \`name'](https://www.ruby-forum.com/t/undefined-method-name/142541)

<div class="topic-metadata">

**Author:** [@joernborup](https://www.ruby-forum.com/u/joernborup)\
**Replies:** 3\
**Last updated:** [July 9, 2008, 1:39am UTC](https://www.ruby-forum.com/t/undefined-method-name/142541 "2008-07-09T01:39:21Z")

</div>

Hi Community… I’m new in this game, so this might be a easy question, but I have done my google, without result, so I will try this… I’m learning ROR, and I’m using Patrick Lens ‘Ruby on Rails’ book. (This is writte…

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

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