# Rails

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

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

---

## [How to store some data in session](https://www.ruby-forum.com/t/how-to-store-some-data-in-session/92339)

<div class="topic-metadata">

**Author:** [@stanly](https://www.ruby-forum.com/u/stanly)\
**Replies:** 3\
**Last updated:** [April 18, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/how-to-store-some-data-in-session/92339 "2007-04-18T15:40:28Z")

</div>

Hi everyone, I wanted to know how do i save some data in session and later retrieve that. I am new to rails and just couldn’t find any help regarding this. Thank you

---

## [How to set up proxy for rails app?](https://www.ruby-forum.com/t/how-to-set-up-proxy-for-rails-app/92343)

<div class="topic-metadata">

**Author:** [@Tomas\_Musil](https://www.ruby-forum.com/u/Tomas_Musil)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/how-to-set-up-proxy-for-rails-app/92343 "2007-04-18T15:27:39Z")

</div>

Hello everyone, I’m trying to create simple rails app using NetBeans (nbextras.org) from scratch as described here: http://weblogs.java.net/blog/bleonard/archive/2007/03/building\_a\_ruby.html But there’s a problem: s…

---

## [Find(:all, :conditions =\> \['loja\_id in (?)', Arrau\]](https://www.ruby-forum.com/t/find-all-conditions-loja-id-in-arrau/92344)

<div class="topic-metadata">

**Author:** [@Cassiano\_R](https://www.ruby-forum.com/u/Cassiano_R)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/find-all-conditions-loja-id-in-arrau/92344 "2007-04-18T15:14:38Z")

</div>

find(:all, :conditions =\> \['tarefa\_id = ? and loja\_id in (?) ', “#{params\[:id\]}”,"#{params\[:lojas\]}"\])

---

## [Moving to production](https://www.ruby-forum.com/t/moving-to-production/91880)

<div class="topic-metadata">

**Author:** [@Skrinak](https://www.ruby-forum.com/u/Skrinak)\
**Replies:** 3\
**Last updated:** [April 18, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/moving-to-production/91880 "2007-04-18T15:01:45Z")

</div>

How do you configure apache on red hat linux ‘the proper way’ for production? There’s an intriguing line in config/envinronment.rb: Uncomment below to force Rails into production mode when you don’t control web/app ser…

---

## [Image Email Attachments Not Working](https://www.ruby-forum.com/t/image-email-attachments-not-working/92278)

<div class="topic-metadata">

**Author:** [@sideshow](https://www.ruby-forum.com/u/sideshow)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 1:35pm UTC](https://www.ruby-forum.com/t/image-email-attachments-not-working/92278 "2007-04-18T13:35:37Z")

</div>

Hey all, I’m been struggling with an email attachment problem for a few weeks now. I can’t seem to get image attachments in an email to work. I’d receive the email fine, but the actual image in the attachment is broke…

---

## [Include gem](https://www.ruby-forum.com/t/include-gem/92323)

<div class="topic-metadata">

**Author:** [@prot](https://www.ruby-forum.com/u/prot)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 12:16pm UTC](https://www.ruby-forum.com/t/include-gem/92323 "2007-04-18T12:16:29Z")

</div>

Hello friends my query is instead of installing rubygem like “rmagick, etc” can we dump into our application folder so while uploading the application on server we don’t have to install or verify for the gem or the ve…

---

## [Two databases one app?](https://www.ruby-forum.com/t/two-databases-one-app/92292)

<div class="topic-metadata">

**Author:** [@jawgaping](https://www.ruby-forum.com/u/jawgaping)\
**Replies:** 4\
**Last updated:** [April 18, 2007, 10:58am UTC](https://www.ruby-forum.com/t/two-databases-one-app/92292 "2007-04-18T10:58:22Z")

</div>

Ultimately what I need to make happen is have two domains point to the same application, however depending on which domain is accessing it to use a different database. I suggested installing the application on two ser…

---

## [Stumped on RXML Template](https://www.ruby-forum.com/t/stumped-on-rxml-template/92321)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 9:42am UTC](https://www.ruby-forum.com/t/stumped-on-rxml-template/92321 "2007-04-18T09:42:10Z")

</div>

Hi all, I have a bit of a problem and don’t know how to proceed: I have the following RXML Template that: xml.instruct! xml.articles do for article in @articles xml.article do xml.id(article.id, :type =\> ‘integer…

---

## [RMagick - CORE\_RL\_magick\_.dll was not found](https://www.ruby-forum.com/t/rmagick-core-rl-magick-dll-was-not-found/92328)

<div class="topic-metadata">

**Author:** [@arjun\_ghosh](https://www.ruby-forum.com/u/arjun_ghosh)\
**Replies:** 2\
**Last updated:** [April 18, 2007, 9:14am UTC](https://www.ruby-forum.com/t/rmagick-core-rl-magick-dll-was-not-found/92328 "2007-04-18T09:14:42Z")

</div>

Hi, I have installed RMagick following the steps on http://rmagick.rubyforge.org/install-faq.html. I have XP. I am getting the error CORE\_RL\_magick\_.dll was not found. I even tried restarting the machine. But no help…

---

## [UMN Mapserver with my rails application](https://www.ruby-forum.com/t/umn-mapserver-with-my-rails-application/92326)

<div class="topic-metadata">

**Author:** [@Kallada](https://www.ruby-forum.com/u/Kallada)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 8:54am UTC](https://www.ruby-forum.com/t/umn-mapserver-with-my-rails-application/92326 "2007-04-18T08:54:08Z")

</div>

I’m planning to use Mapserver with my rails application (for some traffic management system). For that we need to develop a prototype for client demo. Googled extensively to get some How to or steps, but couldn’t fin…

---

## [Rake -- problem](https://www.ruby-forum.com/t/rake-problem/92322)

<div class="topic-metadata">

**Author:** [@thameem](https://www.ruby-forum.com/u/thameem)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 8:34am UTC](https://www.ruby-forum.com/t/rake-problem/92322 "2007-04-18T08:34:20Z")

</div>

hi flock, i am a newbie to rail plz help me… when i am giving the rake command i am getting te folliwing error $rake db:migrate (in /home/appl) rake aborted! no such file to load – postgres

---

## [Changing the port no to start the server](https://www.ruby-forum.com/t/changing-the-port-no-to-start-the-server/92319)

<div class="topic-metadata">

**Author:** [@thameem](https://www.ruby-forum.com/u/thameem)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 8:08am UTC](https://www.ruby-forum.com/t/changing-the-port-no-to-start-the-server/92319 "2007-04-18T08:08:46Z")

</div>

hi flocks, http://localhost:3000 is already binded to another application how i can te port no… or how can i release the port… plz help… plz help me… when i am trying to start the server i am getting the following er…

---

## [Getting error while server startup/for any ruby operation](https://www.ruby-forum.com/t/getting-error-while-server-startup-for-any-ruby-operation/92317)

<div class="topic-metadata">

**Author:** [@saravanan](https://www.ruby-forum.com/u/saravanan)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 7:52am UTC](https://www.ruby-forum.com/t/getting-error-while-server-startup-for-any-ruby-operation/92317 "2007-04-18T07:52:23Z")

</div>

Hi, I have ruby on my system. To get pdf report from the application, I searched in google and got one gem and installed with their installation hints. I extract the folder and in that a bulk of files like in ruby …

---

## [backgrounDRb versus DRb](https://www.ruby-forum.com/t/backgroundrb-versus-drb/92291)

<div class="topic-metadata">

**Author:** [@soroe](https://www.ruby-forum.com/u/soroe)\
**Replies:** 5\
**Last updated:** [April 18, 2007, 7:43am UTC](https://www.ruby-forum.com/t/backgroundrb-versus-drb/92291 "2007-04-18T07:43:29Z")

</div>

Hey Guys, I’m using ActiveRecord in a threaded application and getting the “MSQL lost its database connection…etc.” error message. Searching through the forum I see the issue is basically related to the fact that Rai…

---

## [Catching frozen hashes](https://www.ruby-forum.com/t/catching-frozen-hashes/92314)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 6:51am UTC](https://www.ruby-forum.com/t/catching-frozen-hashes/92314 "2007-04-18T06:51:12Z")

</div>

Hello I have been wrestling w/ the frozen hash problem in a script and I’m trying to catch this at the source where it crashes the program in flames. Unfortunately, when I look at the errors, the failure is way up…

---

## [Using NET::POP3 and ActionMailer successfully. . .?](https://www.ruby-forum.com/t/using-net-pop3-and-actionmailer-successfully/92294)

<div class="topic-metadata">

**Author:** [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 6:19am UTC](https://www.ruby-forum.com/t/using-net-pop3-and-actionmailer-successfully/92294 "2007-04-18T06:19:00Z")

</div>

Hi all, I’ve tried all of the following to get email retrieval, parsing, and saving to the DB working properly in rails: http://www.nabble.com/Follow-Up:-Receiving-Inbound-Email-and-Creating-Data-in-Rails-App-t35383…

---

## [Attachment\_fu -- specify exact resize value](https://www.ruby-forum.com/t/attachment-fu-specify-exact-resize-value/92305)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 2\
**Last updated:** [April 18, 2007, 5:56am UTC](https://www.ruby-forum.com/t/attachment-fu-specify-exact-resize-value/92305 "2007-04-18T05:56:58Z")

</div>

How can you get the images and thumbnails to resize to an exact demension? This is what I have in my model: :resize\_to =\> ‘150x150\>’, :thumbnails =\> { :thumb =\> ‘31x31\>’ } If the images are not perfectly squared, I g…

---

## [Youtube killer made in ruby rocks seinfeld statue episode](https://www.ruby-forum.com/t/youtube-killer-made-in-ruby-rocks-seinfeld-statue-episode/92306)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 3:55am UTC](https://www.ruby-forum.com/t/youtube-killer-made-in-ruby-rocks-seinfeld-statue-episode/92306 "2007-04-18T03:55:52Z")

</div>

http://www.teenwag.com/playvideo/589

---

## [Do active\_record\_store sessions expire by default?](https://www.ruby-forum.com/t/do-active-record-store-sessions-expire-by-default/92298)

<div class="topic-metadata">

**Author:** [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Replies:** 2\
**Last updated:** [April 18, 2007, 3:39am UTC](https://www.ruby-forum.com/t/do-active-record-store-sessions-expire-by-default/92298 "2007-04-18T03:39:03Z")

</div>

If I’m not wrong, standard temp-file sessions expire when the active window closes, does the same go for active\_record\_store sessions or must they be emptied through specific instructions? Thanks.

---

## [Self referential has\_many through w/ uniq not working](https://www.ruby-forum.com/t/self-referential-has-many-through-w-uniq-not-working/92307)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 2:54am UTC](https://www.ruby-forum.com/t/self-referential-has-many-through-w-uniq-not-working/92307 "2007-04-18T02:54:10Z")

</div>

After I patched my rails to allow me to use the “\<\<” operation on has\_many through WITH a self referential relationship, I ran into another issue: :uniq=\> true does not prohibit me from creating a second record in the …

---

## [Javascript back or rails way to go back a window?](https://www.ruby-forum.com/t/javascript-back-or-rails-way-to-go-back-a-window/92280)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 2\
**Last updated:** [April 18, 2007, 2:26am UTC](https://www.ruby-forum.com/t/javascript-back-or-rails-way-to-go-back-a-window/92280 "2007-04-18T02:26:47Z")

</div>

hi. i am using acts\_as\_ferret for my application. when i search for something, and then click on the result, i have a back button(javascript:history.back) that should take the user back the listing page. however, i ge…

---

## [Prototype function or Ajax Reque in HREF of \<MAP\> \<AREA\>?](https://www.ruby-forum.com/t/prototype-function-or-ajax-reque-in-href-of-map-area/88561)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 2:20am UTC](https://www.ruby-forum.com/t/prototype-function-or-ajax-reque-in-href-of-map-area/88561 "2007-04-18T02:20:48Z")

</div>

How can I write prototype effect or Ajax Request ?.. # standard # standard thanks kad

---

## [Fixtures wishlist](https://www.ruby-forum.com/t/fixtures-wishlist/92303)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 2:08am UTC](https://www.ruby-forum.com/t/fixtures-wishlist/92303 "2007-04-18T02:08:48Z")

</div>

I’m sure this has been mentioned on the group before, but…here’s my fixtures wish-list per “test” fixtures within the fixtures be able to run some arbitrary Ruby code (like a function at the bottom of the yaml code t…

---

## [How do collections from associations access class methods?](https://www.ruby-forum.com/t/how-do-collections-from-associations-access-class-methods/92304)

<div class="topic-metadata">

**Author:** [@altay](https://www.ruby-forum.com/u/altay)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 2:02am UTC](https://www.ruby-forum.com/t/how-do-collections-from-associations-access-class-methods/92304 "2007-04-18T02:02:47Z")

</div>

Hi all- I’m working on a little survey app. Basically, you can write and tag questions (using acts\_as\_taggable\_on\_steroids) and it serves these question to the user in random order. I’ve defined a class method that …

---

## [GetText problems with .set\_error\_message\_title](https://www.ruby-forum.com/t/gettext-problems-with-set-error-message-title/86202)

<div class="topic-metadata">

**Author:** [@neongrau](https://www.ruby-forum.com/u/neongrau)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 1:51am UTC](https://www.ruby-forum.com/t/gettext-problems-with-set-error-message-title/86202 "2007-04-18T01:51:26Z")

</div>

i tried to change the error message title to use with “error\_messages\_for” as described at http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html#Translate+the+title%2Fexplanation+on+the+error+message+dialog but…

---

## [Fixtures on fixtures](https://www.ruby-forum.com/t/fixtures-on-fixtures/70634)

<div class="topic-metadata">

**Author:** [@Pupeno](https://www.ruby-forum.com/u/Pupeno)\
**Replies:** 1\
**Last updated:** [April 18, 2007, 1:43am UTC](https://www.ruby-forum.com/t/fixtures-on-fixtures/70634 "2007-04-18T01:43:14Z")

</div>

Hello, Is there some way to access other fixtures’ records by name in one fixture ? I have a complex set of relationships and I’d like to be able to do: order: id: 1 person: persons(:john) # defined on the people f…

---

## [Re: Follow-Up: Receiving Inbound Email and Creating Data in](https://www.ruby-forum.com/t/re-follow-up-receiving-inbound-email-and-creating-data-in/91752)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 18, 2007, 1:42am UTC](https://www.ruby-forum.com/t/re-follow-up-receiving-inbound-email-and-creating-data-in/91752 "2007-04-18T01:42:46Z")

</div>

Julien, Thanks, I will probably end up with backgroundrb, which I have used in other situations with good results. I have just been trying to toy around and find something that would work and be a little more simple. …

---

## [Research Project](https://www.ruby-forum.com/t/research-project/92300)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 0\
**Last updated:** [April 18, 2007, 1:12am UTC](https://www.ruby-forum.com/t/research-project/92300 "2007-04-18T01:12:44Z")

</div>

Hey everyone! I joined this group to get some information on Ruby on Rails. I am in an MBA Program and in one of my classes I am doing a research paper on emerging technologies. One of the topics I am to research i…

---

## [Simple solution to the 'twitter' scaling problem](https://www.ruby-forum.com/t/simple-solution-to-the-twitter-scaling-problem/92222)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 18, 2007, 12:50am UTC](https://www.ruby-forum.com/t/simple-solution-to-the-twitter-scaling-problem/92222 "2007-04-18T00:50:01Z")

</div>

By now i’m sure we’ve all read the comments bouncing around in blogs about the twitter scaling problem: namely they were worried about how to use rails against multiple cloned database backends. Well, whats wrong with…

---

## [How to create a Database Table in a Controller](https://www.ruby-forum.com/t/how-to-create-a-database-table-in-a-controller/92265)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 3\
**Last updated:** [April 17, 2007, 10:52pm UTC](https://www.ruby-forum.com/t/how-to-create-a-database-table-in-a-controller/92265 "2007-04-17T22:52:00Z")

</div>

I need to create a database table in a controller method, but I get a undefined method \`create\_table’ error. so, how to to mixin the methods that will be needed for creating a table?

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

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