# Rails

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

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

---

## [How to make my own render method](https://www.ruby-forum.com/t/how-to-make-my-own-render-method/167157)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 1\
**Last updated:** [May 4, 2009, 11:02pm UTC](https://www.ruby-forum.com/t/how-to-make-my-own-render-method/167157 "2009-05-04T23:02:16Z")

</div>

I would like to create method to render for my own format. What I would like to accomplish is something like this: respond\_to do |format| format.html format.pdf { render :file :=\> ‘my\_file’ } end Where format.pdf…

---

## [Problem using ActiveRecord on Windows](https://www.ruby-forum.com/t/problem-using-activerecord-on-windows/167155)

<div class="topic-metadata">

**Author:** [@skiloup](https://www.ruby-forum.com/u/skiloup)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/problem-using-activerecord-on-windows/167155 "2009-05-04T21:49:24Z")

</div>

Problem ActiveRecord appears to be failing on my Windows install Setup I have MySql version 5.0.51 running on a debian box, let’s call it (A) I have Ruby w/ the ActiveRecord gem installed on an ubuntu box, let’s call …

---

## [Need remote\_function help](https://www.ruby-forum.com/t/need-remote-function-help/167103)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 5\
**Last updated:** [May 4, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/need-remote-function-help/167103 "2009-05-04T20:39:42Z")

</div>

This is the first time I have used remote\_function and I’m unclear on why my code is not working as I would expect. I am trying to have my select box load the specified action and pass a few params to it when an item …

---

## [Passenger 2.2.1 error?](https://www.ruby-forum.com/t/passenger-2-2-1-error/167149)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 1\
**Last updated:** [May 4, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/passenger-2-2-1-error/167149 "2009-05-04T19:55:39Z")

</div>

Hi, I am running my rails 2.3.2 app on Passenger 2.2.1. There’s a simple page like render :text =\> “Hello” And it crashes about every 1 out of 5 refreshes. Is there any known issue with Passenger 2.2.1? Thanks. Sa…

---

## [Conflict acts\_as\_rateable with will\_paginate](https://www.ruby-forum.com/t/conflict-acts-as-rateable-with-will-paginate/167148)

<div class="topic-metadata">

**Author:** [@allanice001](https://www.ruby-forum.com/u/allanice001)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/conflict-acts-as-rateable-with-will-paginate/167148 "2009-05-04T19:27:56Z")

</div>

I tried using the acts\_as\_rateable in console but not working. Running the specs appeared an error with will\_paginate. Someone went through this? I look at. Thanks!

---

## [Use Rails test environment to test other kinds of servers](https://www.ruby-forum.com/t/use-rails-test-environment-to-test-other-kinds-of-servers/167108)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 1\
**Last updated:** [May 4, 2009, 6:50pm UTC](https://www.ruby-forum.com/t/use-rails-test-environment-to-test-other-kinds-of-servers/167108 "2009-05-04T18:50:24Z")

</div>

I want to use the very powerful Rails testing framework to test different kinds of servers (in my case, WordPress with some plugins I’m developing). WordPress will run on ‘localhost’ and the database will be local. I…

---

## [Spree 0.8.0 Released (Rails eCommerce Project)](https://www.ruby-forum.com/t/spree-0-8-0-released-rails-ecommerce-project/167135)

<div class="topic-metadata">

**Author:** [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/spree-0-8-0-released-rails-ecommerce-project/167135 "2009-05-04T18:05:20Z")

</div>

Spree is an open source ecommerce solution for Ruby on Rails. http://spreecommerce.com/articles/2009/05/04/spree-0-8-0-released/ I’ll also be leading a BOF at RailsConf where we will be chatting about Rails commerce s…

---

## [Partials: what variable name should you use?](https://www.ruby-forum.com/t/partials-what-variable-name-should-you-use/167141)

<div class="topic-metadata">

**Author:** [@7stud](https://www.ruby-forum.com/u/7stud)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/partials-what-variable-name-should-you-use/167141 "2009-05-04T17:34:15Z")

</div>

Here’s a call to a partial: \<%= render(:partial =\> “cart”, :object =\> @cart) %\> As far as I know, that statement causes a variable to be created called ‘cart’ that is available to the partial, and whose value is @cart.…

---

## [Using module methods in Rake task& model?](https://www.ruby-forum.com/t/using-module-methods-in-rake-task-model/165643)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 5\
**Last updated:** [May 4, 2009, 3:47pm UTC](https://www.ruby-forum.com/t/using-module-methods-in-rake-task-model/165643 "2009-05-04T15:47:01Z")

</div>

Hello, I’m trying to use some methods I’m defining in a module in a model and my rake task. How can I do this? Any help would be appreciated. I’ve currently got the following, but my rake task can’t access the meth…

---

## [Parsing podcast rss problem](https://www.ruby-forum.com/t/parsing-podcast-rss-problem/151597)

<div class="topic-metadata">

**Author:** [@lyntaff](https://www.ruby-forum.com/u/lyntaff)\
**Replies:** 1\
**Last updated:** [May 4, 2009, 3:22pm UTC](https://www.ruby-forum.com/t/parsing-podcast-rss-problem/151597 "2009-05-04T15:22:52Z")

</div>

Hi, I need to parse an rss feed for a podcast. I get this error ‘prefix doesn’t associate uri \<\> in tag ’ when I use the following: --------------controller------------------------- def podcasts require ‘rss’ req…

---

## [Deleting records in association](https://www.ruby-forum.com/t/deleting-records-in-association/167115)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 2\
**Last updated:** [May 4, 2009, 2:21pm UTC](https://www.ruby-forum.com/t/deleting-records-in-association/167115 "2009-05-04T14:21:21Z")

</div>

hi, i have 3 models 1.request 2.user 3.requesttargetuser Requesttargetuser belongs\_to :request belongs\_to :user User has\_many :requesttargetusers, :dependent=\> :destroy has\_many :requests,:through =\> :requestta…

---

## [Not logged in in subdomain?](https://www.ruby-forum.com/t/not-logged-in-in-subdomain/162649)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 4\
**Last updated:** [May 4, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/not-logged-in-in-subdomain/162649 "2009-05-04T13:06:09Z")

</div>

For some reason my users get logged out when they switch to a subdomain. I have this in my environment: config.action\_controller.session = { :session\_key =\> '\_app\_session', :session\_domain =\> 'mydomain.com', :se…

---

## [Layout](https://www.ruby-forum.com/t/layout/167106)

<div class="topic-metadata">

**Author:** [@bartolome](https://www.ruby-forum.com/u/bartolome)\
**Replies:** 1\
**Last updated:** [May 4, 2009, 12:44pm UTC](https://www.ruby-forum.com/t/layout/167106 "2009-05-04T12:44:28Z")

</div>

I’ve been having a problem. I have an application layout and a users controller. All the methods, but forgot\_password, must use the application layout. So, I added below the class declaration the following line: clas…

---

## [Undefined method \`relative\_url\_root'](https://www.ruby-forum.com/t/undefined-method-relative-url-root/167087)

<div class="topic-metadata">

**Author:** [@furrot](https://www.ruby-forum.com/u/furrot)\
**Replies:** 5\
**Last updated:** [May 4, 2009, 12:27pm UTC](https://www.ruby-forum.com/t/undefined-method-relative-url-root/167087 "2009-05-04T12:27:41Z")

</div>

Hi all, I’ve installed the ym4rgm plugin so that I can integrate a google map to pinpoint locations of photos. I cant find where the error refers to. I got the API key from google for http://localhost and put it into …

---

## [Automating a Rake Task](https://www.ruby-forum.com/t/automating-a-rake-task/167117)

<div class="topic-metadata">

**Author:** [@ddurose](https://www.ruby-forum.com/u/ddurose)\
**Replies:** 1\
**Last updated:** [May 4, 2009, 10:37am UTC](https://www.ruby-forum.com/t/automating-a-rake-task/167117 "2009-05-04T10:37:07Z")

</div>

What is the easiest way (on a machine running Windows) to automate a custom Rake task to run, sleep for 30 minutes, run again and repeat forever? View this message in context: http://www.nabble.com/Automating-a-Rake-…

---

## [Workling not outputting to production.log](https://www.ruby-forum.com/t/workling-not-outputting-to-production-log/165089)

<div class="topic-metadata">

**Author:** [@novaruby](https://www.ruby-forum.com/u/novaruby)\
**Replies:** 3\
**Last updated:** [May 4, 2009, 9:44am UTC](https://www.ruby-forum.com/t/workling-not-outputting-to-production-log/165089 "2009-05-04T09:44:55Z")

</div>

I have workling/starling setup and working for both production and development to send a welcome email after a user signs up. However, in the production environment, it refuses to output to the log file production.log…

---

## [Sphinx on Rails?](https://www.ruby-forum.com/t/sphinx-on-rails/167114)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [May 4, 2009, 9:07am UTC](https://www.ruby-forum.com/t/sphinx-on-rails/167114 "2009-05-04T09:07:25Z")

</div>

The website already has Sphinx integrated with Php. I just want to query it and get results. How is it possible? Thanks.

---

## [Introduction](https://www.ruby-forum.com/t/introduction/167111)

<div class="topic-metadata">

**Author:** [@add](https://www.ruby-forum.com/u/add)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 5:43am UTC](https://www.ruby-forum.com/t/introduction/167111 "2009-05-04T05:43:52Z")

</div>

Zhengzhou Vipeak Heavy Industry Machinery Co., Ltd has long been one of the best powder processing machinery companies in China, Welcome all the customers from worldwide to browse our website and choose our machinery. …

---

## [Fetch method of session hash](https://www.ruby-forum.com/t/fetch-method-of-session-hash/167061)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 16\
**Last updated:** [May 4, 2009, 12:37am UTC](https://www.ruby-forum.com/t/fetch-method-of-session-hash/167061 "2009-05-04T00:37:43Z")

</div>

Is there something special about the session hash that would make it so that I can not access its associated fetch method? In attempting to do so I keep getting complaints that there is no such method. Thanks for any…

---

## [Parsing Rails XML on Flex](https://www.ruby-forum.com/t/parsing-rails-xml-on-flex/167097)

<div class="topic-metadata">

**Author:** [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Replies:** 0\
**Last updated:** [May 4, 2009, 12:08am UTC](https://www.ruby-forum.com/t/parsing-rails-xml-on-flex/167097 "2009-05-04T00:08:30Z")

</div>

Hello, I’m currently toying with Rails/Flex app and I noticed that even that Rails returns XML with all type data I still have to do such tedious things like parseInt(event.result.user.age) in AS. Perhaps anyone know…

---

## [HTTP Auth 401 Even on Valid Login](https://www.ruby-forum.com/t/http-auth-401-even-on-valid-login/167095)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 0\
**Last updated:** [May 3, 2009, 9:30pm UTC](https://www.ruby-forum.com/t/http-auth-401-even-on-valid-login/167095 "2009-05-03T21:30:01Z")

</div>

I can’t understand why authenticate\_or\_request\_with\_http\_basic keeps failing even though I am entering the correct info. If I try to access /admin/items/new, I enter the correct info but I keep getting prompted. The …

---

## [Fixing column value in the model](https://www.ruby-forum.com/t/fixing-column-value-in-the-model/167076)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 7\
**Last updated:** [May 3, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/fixing-column-value-in-the-model/167076 "2009-05-03T21:18:00Z")

</div>

I’m using a Crypto.encrypt(“string”) to create a record for a column and Crypto.decrypt(column) when reading and presenting it in the browser. I do this in the controller. Can I do it in the model instead?

---

## [Multiple models](https://www.ruby-forum.com/t/multiple-models/167034)

<div class="topic-metadata">

**Author:** [@janus\_way](https://www.ruby-forum.com/u/janus_way)\
**Replies:** 7\
**Last updated:** [May 3, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/multiple-models/167034 "2009-05-03T20:53:02Z")

</div>

I have the below models UserTable: name email: login: password salt CategoryTable: name \[model\] has\_many :books AutherTable: Name \[model\] has\_many :books PublisherTable: name \[model\] has\_many :books St…

---

## [\[JOB\] Senior Rails developper -\> Join a Swiss startup!](https://www.ruby-forum.com/t/job-senior-rails-developper-join-a-swiss-startup/167092)

<div class="topic-metadata">

**Author:** [@hildegunst](https://www.ruby-forum.com/u/hildegunst)\
**Replies:** 0\
**Last updated:** [May 3, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/job-senior-rails-developper-join-a-swiss-startup/167092 "2009-05-03T20:52:28Z")

</div>

Hi, BETCoffee is a young startup based in Lausanne, the french speaking part of Switzerland. We are currently looking for a senior Rails developer to join the team. The position is on a permanent basis and 100% in L…

---

## [Uninitialized constant Iconv](https://www.ruby-forum.com/t/uninitialized-constant-iconv/167090)

<div class="topic-metadata">

**Author:** [@supertiti](https://www.ruby-forum.com/u/supertiti)\
**Replies:** 0\
**Last updated:** [May 3, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-iconv/167090 "2009-05-03T19:01:21Z")

</div>

Hi there, I’m having an issue with a RoR website : when trying to save a text change into the database i get the error below Strange thing is that i imported the database from production where it is working well, und…

---

## [Rescue CookieOverflow](https://www.ruby-forum.com/t/rescue-cookieoverflow/167082)

<div class="topic-metadata">

**Author:** [@joopp](https://www.ruby-forum.com/u/joopp)\
**Replies:** 2\
**Last updated:** [May 3, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/rescue-cookieoverflow/167082 "2009-05-03T18:01:07Z")

</div>

Hi, I’m trying to rescue from a ActionController::Session::CookieStore::CookieOverflow error… however this doesn’t work: def some\_controller\_action begin session\[:too\_much\] = ‘toomuchinfotostore’\*4000 rescue Cooki…

---

## [Ajax submit question](https://www.ruby-forum.com/t/ajax-submit-question/167064)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [May 3, 2009, 5:18pm UTC](https://www.ruby-forum.com/t/ajax-submit-question/167064 "2009-05-03T17:18:24Z")

</div>

Is there a way to do an ajax submit but only send the values in an embedded form inside a form? I have to do an ajax submit with multiple companies and I get this being submitted for the post: companyid 1 companyid…

---

## [Need help with self-referential has\_many :through associations](https://www.ruby-forum.com/t/need-help-with-self-referential-has-many-through-associations/167085)

<div class="topic-metadata">

**Author:** [@alexander](https://www.ruby-forum.com/u/alexander)\
**Replies:** 0\
**Last updated:** [May 3, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/need-help-with-self-referential-has-many-through-associations/167085 "2009-05-03T16:47:56Z")

</div>

Hi In my application i need self-referential has\_many :through associations, but that i make not work: Rails -v 2.3.2 The Migrations: create\_table :pages do |t| t.string :name t.text :body end create\_table :link…

---

## [Localizing attributes when using I18n](https://www.ruby-forum.com/t/localizing-attributes-when-using-i18n/167074)

<div class="topic-metadata">

**Author:** [@Colorblind](https://www.ruby-forum.com/u/Colorblind)\
**Replies:** 1\
**Last updated:** [May 3, 2009, 3:53pm UTC](https://www.ruby-forum.com/t/localizing-attributes-when-using-i18n/167074 "2009-05-03T15:53:24Z")

</div>

Currently I’m developing a multilingual app on rails 2.2. I liked very much the idea of Xavier Defrang to provide a locale-aware accessor for the fields that needs a translation: http://defrang.com/articles/2005/12/02…

---

## [Restful rails](https://www.ruby-forum.com/t/restful-rails/167023)

<div class="topic-metadata">

**Author:** [@chaitanya](https://www.ruby-forum.com/u/chaitanya)\
**Replies:** 2\
**Last updated:** [May 3, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/restful-rails/167023 "2009-05-03T12:14:29Z")

</div>

I have some questions regarding restful rails applications. Is the concept of restful so tied to the database ? What if a application does not use a database at all or if the application is using a legacy database w…

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

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