# Rails

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

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

---

## [Time.now problems on production environment](https://www.ruby-forum.com/t/time-now-problems-on-production-environment/179045)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [November 16, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/time-now-problems-on-production-environment/179045 "2009-11-16T13:12:06Z")

</div>

I have some problems on production environment with Time.now. It gives a different time to the one I get on development. In environment.rb I have config.time\_zone = “Madrid”, but when I put Time.now on the console, I …

---

## [Jasper Server Access from RoR](https://www.ruby-forum.com/t/jasper-server-access-from-ror/179042)

<div class="topic-metadata">

**Author:** [@yash](https://www.ruby-forum.com/u/yash)\
**Replies:** 0\
**Last updated:** [November 16, 2009, 12:33pm UTC](https://www.ruby-forum.com/t/jasper-server-access-from-ror/179042 "2009-11-16T12:33:44Z")

</div>

Hello All! I am new to Ruby on Rails… m trying to access & run the reports resides in jasper server.I am using web service of Jasper server, till now m able to list the reports of specified folder but m not able to g…

---

## [Order by child](https://www.ruby-forum.com/t/order-by-child/179004)

<div class="topic-metadata">

**Author:** [@pubclub](https://www.ruby-forum.com/u/pubclub)\
**Replies:** 4\
**Last updated:** [November 16, 2009, 11:19am UTC](https://www.ruby-forum.com/t/order-by-child/179004 "2009-11-16T11:19:55Z")

</div>

Hello, I have a Product model with a has\_many relationship towards a Order model. What i am trying to get is a list of all products, ordered by the most recent Order. For example: Product “Old Book” was last sold on…

---

## [Why many blog on Ruby/Rails run on PHP?](https://www.ruby-forum.com/t/why-many-blog-on-ruby-rails-run-on-php/179014)

<div class="topic-metadata">

**Author:** [@tyron](https://www.ruby-forum.com/u/tyron)\
**Replies:** 2\
**Last updated:** [November 16, 2009, 7:12am UTC](https://www.ruby-forum.com/t/why-many-blog-on-ruby-rails-run-on-php/179014 "2009-11-16T07:12:51Z")

</div>

I have no statistic data, but I’ve been browsing on Ruby/Rails related blogs for quite a while, and a surprisingly little number of them seems to run on Typo or Radiant, even those written by accountable and full-time…

---

## [Auto complete with passing multiple parameters](https://www.ruby-forum.com/t/auto-complete-with-passing-multiple-parameters/178991)

<div class="topic-metadata">

**Author:** [@arokiafelix](https://www.ruby-forum.com/u/arokiafelix)\
**Replies:** 2\
**Last updated:** [November 16, 2009, 5:47am UTC](https://www.ruby-forum.com/t/auto-complete-with-passing-multiple-parameters/178991 "2009-11-16T05:47:56Z")

</div>

i have a problem with passing multiple value in auto complete field.

---

## [Validate list of items](https://www.ruby-forum.com/t/validate-list-of-items/178969)

<div class="topic-metadata">

**Author:** [@shaki](https://www.ruby-forum.com/u/shaki)\
**Replies:** 1\
**Last updated:** [November 16, 2009, 5:39am UTC](https://www.ruby-forum.com/t/validate-list-of-items/178969 "2009-11-16T05:39:36Z")

</div>

Hi, I am new to Ruby on Rails. I have to validate the number of items in a text box separated by colon. No of items also get from the user. Is there a way to do this using ruby active records. Thanks in advance.

---

## [How to extend a RESTful route?](https://www.ruby-forum.com/t/how-to-extend-a-restful-route/178939)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 4\
**Last updated:** [November 16, 2009, 5:36am UTC](https://www.ruby-forum.com/t/how-to-extend-a-restful-route/178939 "2009-11-16T05:36:30Z")

</div>

I used the scaffold option to generate a RESTful set of routes to a Document model. All works as described. Now, I wish to extend the controller to add a ‘publish’ action on DocumentController and add a ‘publish’ ro…

---

## [Accepts\_nested\_attributes\_for in rails 2.2.2?](https://www.ruby-forum.com/t/accepts-nested-attributes-for-in-rails-2-2-2/179011)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [November 15, 2009, 5:53pm UTC](https://www.ruby-forum.com/t/accepts-nested-attributes-for-in-rails-2-2-2/179011 "2009-11-15T17:53:40Z")

</div>

Hi all I’m using rails 2.2.2 in one of my apps, and upgrading isn’t an option at the moment. I’d really like to use the functionality of accepts\_nested\_attributes\_form, which was added after 2.2.2. Is it available …

---

## [Css and js gzip Compression](https://www.ruby-forum.com/t/css-and-js-gzip-compression/179000)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 0\
**Last updated:** [November 15, 2009, 12:16pm UTC](https://www.ruby-forum.com/t/css-and-js-gzip-compression/179000 "2009-11-15T12:16:01Z")

</div>

hi. I use apache with passenger and I want to enable the gzip Compression. I use the apache sample configuration mod\_deflate - Apache HTTP Server with following filters AddOutputFilterByType DEFLATE text/html text/p…

---

## [Custom class attributes problem](https://www.ruby-forum.com/t/custom-class-attributes-problem/178986)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 1\
**Last updated:** [November 15, 2009, 12:42am UTC](https://www.ruby-forum.com/t/custom-class-attributes-problem/178986 "2009-11-15T00:42:51Z")

</div>

Hi. Im creating a CRUD-extention for my ActionController. I am trying to make a class (inside the Crudable-module) that contains the options set for the extension. Like so: module Crudable # Extends the control…

---

## [Redirecting to home page](https://www.ruby-forum.com/t/redirecting-to-home-page/178978)

<div class="topic-metadata">

**Author:** [@iggybaseball](https://www.ruby-forum.com/u/iggybaseball)\
**Replies:** 1\
**Last updated:** [November 14, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/redirecting-to-home-page/178978 "2009-11-14T20:05:13Z")

</div>

I have just created a simple blog application and I have one question. I designed a method and a view to show the latest three blogs in my database. This looks great if you go to the page, but now I want to redirect i…

---

## [Export all gems to app\_dir/vendor](https://www.ruby-forum.com/t/export-all-gems-to-app-dir-vendor/178972)

<div class="topic-metadata">

**Author:** [@penguinjr](https://www.ruby-forum.com/u/penguinjr)\
**Replies:** 3\
**Last updated:** [November 14, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/export-all-gems-to-app-dir-vendor/178972 "2009-11-14T17:43:04Z")

</div>

Hi! I’m looking form the method to export all gems of the development to app\_dir/vendor directory for setting up the production server. I saw the cmd rake -T | grep freeze And i used rake rails:freeze:gems but, it …

---

## [Has Many Relationship: collection\_ids= Method Useless?](https://www.ruby-forum.com/t/has-many-relationship-collection-ids-method-useless/178963)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 2\
**Last updated:** [November 14, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/has-many-relationship-collection-ids-method-useless/178963 "2009-11-14T16:51:51Z")

</div>

When modifying a model that has a has\_one or has\_many relationship people usually create form that will submit the id of the selected associated object. Rails takes this into consideration with validations: validate\_…

---

## [How to login in spree](https://www.ruby-forum.com/t/how-to-login-in-spree/178965)

<div class="topic-metadata">

**Author:** [@divyanshutri](https://www.ruby-forum.com/u/divyanshutri)\
**Replies:** 0\
**Last updated:** [November 14, 2009, 11:55am UTC](https://www.ruby-forum.com/t/how-to-login-in-spree/178965 "2009-11-14T11:55:44Z")

</div>

any one cn tell me how i cn login in spree when i click on login button it redirects t0 https://localhost/login

---

## [Overriding initialize in active\_record Model or after\_initialize](https://www.ruby-forum.com/t/overriding-initialize-in-active-record-model-or-after-initialize/178626)

<div class="topic-metadata">

**Author:** [@ryokamiya](https://www.ruby-forum.com/u/ryokamiya)\
**Replies:** 2\
**Last updated:** [November 14, 2009, 11:06am UTC](https://www.ruby-forum.com/t/overriding-initialize-in-active-record-model-or-after-initialize/178626 "2009-11-14T11:06:56Z")

</div>

Hi, I am trying to set initial process when instantiating model by overriding initialize() method which takes arguments. The initialize() method overrides the parent ActiveRecord::Base class’s by taking arguments and…

---

## [Whats You want?](https://www.ruby-forum.com/t/whats-you-want/178964)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 0\
**Last updated:** [November 14, 2009, 10:44am UTC](https://www.ruby-forum.com/t/whats-you-want/178964 "2009-11-14T10:44:07Z")

</div>

http://www.healths.110mb.com/

---

## [\`const\_missing': uninitialized constant CGI::Session (NameEr](https://www.ruby-forum.com/t/const-missing-uninitialized-constant-cgi-session-nameer/178960)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 1\
**Last updated:** [November 14, 2009, 10:38am UTC](https://www.ruby-forum.com/t/const-missing-uninitialized-constant-cgi-session-nameer/178960 "2009-11-14T10:38:15Z")

</div>

Hi all… I am facing the following error “\`const\_missing’: uninitialized constant CGI::Session (NameError)” While running “script/generate controller abc” Having any idea??? Thanks all…

---

## [How to use methods in application\_controller in tests](https://www.ruby-forum.com/t/how-to-use-methods-in-application-controller-in-tests/178959)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 0\
**Last updated:** [November 14, 2009, 7:23am UTC](https://www.ruby-forum.com/t/how-to-use-methods-in-application-controller-in-tests/178959 "2009-11-14T07:23:34Z")

</div>

Hi I have some protected methods in my application controller to handle logging in users and Id like to be able to use them in my tests. But whenever I try to run my tests i always get errors E.g. NameError: undefined…

---

## [Encoding::UTF\_8 missing?](https://www.ruby-forum.com/t/encoding-utf-8-missing/178949)

<div class="topic-metadata">

**Author:** [@tensaiji](https://www.ruby-forum.com/u/tensaiji)\
**Replies:** 3\
**Last updated:** [November 14, 2009, 7:22am UTC](https://www.ruby-forum.com/t/encoding-utf-8-missing/178949 "2009-11-14T07:22:15Z")

</div>

I’ve just done a fresh reinstall of OS X Snow Leopard on my mac, and I’m having all kinds of problems with Rails, but the latest problem has me stumped. Whenever I run rake db:seed to populate my database I hit the fo…

---

## [Handle coustom util classes](https://www.ruby-forum.com/t/handle-coustom-util-classes/178909)

<div class="topic-metadata">

**Author:** [@chinna\_gogulapati](https://www.ruby-forum.com/u/chinna_gogulapati)\
**Replies:** 2\
**Last updated:** [November 14, 2009, 5:30am UTC](https://www.ruby-forum.com/t/handle-coustom-util-classes/178909 "2009-11-14T05:30:31Z")

</div>

Hi All, I am new to Ruby, Basically am a java developer. I have webservice, i want to create a view which access the webservice and display result. For that i want to create a util class which access webservice and th…

---

## [Firefox - Redirect Loop](https://www.ruby-forum.com/t/firefox-redirect-loop/178953)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 1\
**Last updated:** [November 14, 2009, 4:38am UTC](https://www.ruby-forum.com/t/firefox-redirect-loop/178953 "2009-11-14T04:38:52Z")

</div>

Every once in a while I encounter a Firefox error like, “Firefox has detected that the server is redirecting the request for this address in a way that will never complete.” The thing is that I’m pretty well convince…

---

## [Select form tag (selected option)](https://www.ruby-forum.com/t/select-form-tag-selected-option/178913)

<div class="topic-metadata">

**Author:** [@introvert](https://www.ruby-forum.com/u/introvert)\
**Replies:** 3\
**Last updated:** [November 14, 2009, 1:41am UTC](https://www.ruby-forum.com/t/select-form-tag-selected-option/178913 "2009-11-14T01:41:35Z")

</div>

Hello, I’m having problems with form select tag (it wont select the expected value on edit action): \<% form\_for @review do |f| %\> \<%= f.label :customer\_service\_rating %\> \<%= f.select :customer\_service\_rat…

---

## [Migrations w/MySQLdump file (.sql?)](https://www.ruby-forum.com/t/migrations-w-mysqldump-file-sql/178945)

<div class="topic-metadata">

**Author:** [@jrgoodner](https://www.ruby-forum.com/u/jrgoodner)\
**Replies:** 4\
**Last updated:** [November 14, 2009, 12:40am UTC](https://www.ruby-forum.com/t/migrations-w-mysqldump-file-sql/178945 "2009-11-14T00:40:09Z")

</div>

Hey there, I’m not super familiar with MySQL, so please forgive me if I say something stupid. I have a large database table (it includes every zipcode in the U.S., along with its city,state,latitude,longitude), and it…

---

## [Invitation to join Rubyists.EU!](https://www.ruby-forum.com/t/invitation-to-join-rubyists-eu/197112)

<div class="topic-metadata">

**Author:** [@Julio\_Javier\_Cicche](https://www.ruby-forum.com/u/Julio_Javier_Cicche)\
**Replies:** 1\
**Last updated:** [November 14, 2009, 12:06am UTC](https://www.ruby-forum.com/t/invitation-to-join-rubyists-eu/197112 "2009-11-14T00:06:12Z")

</div>

Dear Ruby enthusiasts, At the beginning of October, 2009, we embarked on a project, sweeping in both scope and ambition. Inspired by the current integration trends in an ever shrinking world with porous boundaries, we…

---

## [Cookies multiple values](https://www.ruby-forum.com/t/cookies-multiple-values/178911)

<div class="topic-metadata">

**Author:** [@cookierails](https://www.ruby-forum.com/u/cookierails)\
**Replies:** 5\
**Last updated:** [November 13, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/cookies-multiple-values/178911 "2009-11-13T23:32:49Z")

</div>

Hello.I want to create a cookie with multiple values and call them individually. How it works?

---

## [Ticketing/bugtracking plugin for rails](https://www.ruby-forum.com/t/ticketing-bugtracking-plugin-for-rails/178940)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 3\
**Last updated:** [November 13, 2009, 10:58pm UTC](https://www.ruby-forum.com/t/ticketing-bugtracking-plugin-for-rails/178940 "2009-11-13T22:58:14Z")

</div>

Thanks for the tip, but Redmine seems to be too big for me. I have several little apps in work, so I was thinking maybe there is a plugin that would extend my app with simple, small bug tracking and progress logic. I …

---

## [Ticketing/bugtracking plugin for rails](https://www.ruby-forum.com/t/ticketing-bugtracking-plugin-for-rails/178944)

<div class="topic-metadata">

**Author:** [@christoph\_j](https://www.ruby-forum.com/u/christoph_j)\
**Replies:** 0\
**Last updated:** [November 13, 2009, 10:40pm UTC](https://www.ruby-forum.com/t/ticketing-bugtracking-plugin-for-rails/178944 "2009-11-13T22:40:08Z")

</div>

yea, uservoice.com is really cool, but you have to pay to get some nice features (I got some 0 bugs budget projects). It’s great for big players, that can effort the payments and can sort of outsource the issue (\*don…

---

## [Request.session\_options broken?](https://www.ruby-forum.com/t/request-session-options-broken/178884)

<div class="topic-metadata">

**Author:** [@james](https://www.ruby-forum.com/u/james)\
**Replies:** 2\
**Last updated:** [November 13, 2009, 9:04pm UTC](https://www.ruby-forum.com/t/request-session-options-broken/178884 "2009-11-13T21:04:09Z")

</div>

I’m implementing simple “remember me” functionality for logging in users with Rails 2.3.4. I’m trying to set the session expiration date for some time in the future. After googling around a bit I found this post which…

---

## [Select field value != display on page reload](https://www.ruby-forum.com/t/select-field-value-display-on-page-reload/178928)

<div class="topic-metadata">

**Author:** [@bill\_walton](https://www.ruby-forum.com/u/bill_walton)\
**Replies:** 1\
**Last updated:** [November 13, 2009, 8:37pm UTC](https://www.ruby-forum.com/t/select-field-value-display-on-page-reload/178928 "2009-11-13T20:37:12Z")

</div>

Greetings! I’ve got a select field (simple Yes | No) in a form and an observe\_field removing / inserting a via RJS when the select field changes. If the user reloads the page the value of the select field changes, bu…

---

## [Net::HTTP question](https://www.ruby-forum.com/t/net-http-question/178937)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 1\
**Last updated:** [November 13, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/net-http-question/178937 "2009-11-13T20:27:15Z")

</div>

Hi, I’m doing this: response = Net::HTTP.start(host).request\_head(’/’) To check a domain for its response. Now some of the domains checked will not exist and thus produce the following error: SocketError: getaddrinf…

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

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