# Rails

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

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

---

## [How to refresh views without restarting web server?](https://www.ruby-forum.com/t/how-to-refresh-views-without-restarting-web-server/176714)

<div class="topic-metadata">

**Author:** [@kuanfai](https://www.ruby-forum.com/u/kuanfai)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 11:45am UTC](https://www.ruby-forum.com/t/how-to-refresh-views-without-restarting-web-server/176714 "2009-10-05T11:45:40Z")

</div>

I am running ROR 2.2.2 with Fastcgi. I changed one of my view files, anyone knows how to make the view to take effect without restarting my web server? Thanks.

---

## [WAV to ACC or MP3](https://www.ruby-forum.com/t/wav-to-acc-or-mp3/176708)

<div class="topic-metadata">

**Author:** [@Sergio\_ASGmail](https://www.ruby-forum.com/u/Sergio_ASGmail)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 10:12am UTC](https://www.ruby-forum.com/t/wav-to-acc-or-mp3/176708 "2009-10-05T10:12:56Z")

</div>

I have de audio files on the DB, is there a plugin ho transcode on the fly the audio file GitHub - zencoder/rvideo: Official home of the RVideo project, a Ruby gem for video and audio transcoding. is the solution? Tha…

---

## [Retriving sessions value](https://www.ruby-forum.com/t/retriving-sessions-value/176704)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 9:10am UTC](https://www.ruby-forum.com/t/retriving-sessions-value/176704 "2009-10-05T09:10:15Z")

</div>

Hi All, I have created sub-domain in my application. Now, I want to use session variable, that is set in my main application, in my sub-domaine application. Is any one can help me out? Thanks…

---

## [Creating 2 things at the same time?](https://www.ruby-forum.com/t/creating-2-things-at-the-same-time/176660)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 3\
**Last updated:** [October 5, 2009, 8:52am UTC](https://www.ruby-forum.com/t/creating-2-things-at-the-same-time/176660 "2009-10-05T08:52:34Z")

</div>

So I have 2 models, Comment and Picture. A Comment has one Picture if the users so chooses, but when someone is creating a Comment, it would of course call the create method in the Comment Controller. However, I want …

---

## [Redirect has no effect ? or How to make a reload?](https://www.ruby-forum.com/t/redirect-has-no-effect-or-how-to-make-a-reload/176676)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 1\
**Last updated:** [October 5, 2009, 6:48am UTC](https://www.ruby-forum.com/t/redirect-has-no-effect-or-how-to-make-a-reload/176676 "2009-10-05T06:48:05Z")

</div>

I have a form for creating an object in a pop up window. When the new object has been submitted, I need to update the parent window, the one that created the pop up window. I do it by a redirect to the action that c…

---

## [RMagick is looking for a maintainer](https://www.ruby-forum.com/t/rmagick-is-looking-for-a-maintainer/176694)

<div class="topic-metadata">

**Author:** [@timhunter](https://www.ruby-forum.com/u/timhunter)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 12:30am UTC](https://www.ruby-forum.com/t/rmagick-is-looking-for-a-maintainer/176694 "2009-10-05T00:30:44Z")

</div>

“Believe me, ladies and gentlemen, there’s nothing penultimate about this one.” I’ve just uploaded RMagick 2.12.0 to RubyForge. This will be the my last release of RMagick. I’m looking for someone to take over mainten…

---

## [Error running Selenium rakefile with Rails 2.3.4](https://www.ruby-forum.com/t/error-running-selenium-rakefile-with-rails-2-3-4/176692)

<div class="topic-metadata">

**Author:** [@Perceptes](https://www.ruby-forum.com/u/Perceptes)\
**Replies:** 0\
**Last updated:** [October 4, 2009, 11:58pm UTC](https://www.ruby-forum.com/t/error-running-selenium-rakefile-with-rails-2-3-4/176692 "2009-10-04T23:58:20Z")

</div>

Hi all, I want to get started with Selenium for testing Ajax. I followed the installation instructions on Selenium but get an error when running the rakefile in step 4. I get this error: “uninitialized constant Actio…

---

## [Number\_to\_currency - not accepting all currencies?](https://www.ruby-forum.com/t/number-to-currency-not-accepting-all-currencies/176679)

<div class="topic-metadata">

**Author:** [@MS999](https://www.ruby-forum.com/u/MS999)\
**Replies:** 2\
**Last updated:** [October 4, 2009, 11:31pm UTC](https://www.ruby-forum.com/t/number-to-currency-not-accepting-all-currencies/176679 "2009-10-04T23:31:59Z")

</div>

Hi, I am trying to use the following code to have the browser display the New Israel Shekel, but it is not working \<%= number\_to\_currency(product.price, :unit =\> “â‚ª”) %\> I also tried \<%= number\_to\_currency(product…

---

## [Looking for a good resource on open-uri and FileUtils](https://www.ruby-forum.com/t/looking-for-a-good-resource-on-open-uri-and-fileutils/176630)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 2\
**Last updated:** [October 4, 2009, 7:37pm UTC](https://www.ruby-forum.com/t/looking-for-a-good-resource-on-open-uri-and-fileutils/176630 "2009-10-04T19:37:00Z")

</div>

Hi all, I’m needing to extend the Paperclip Storage module to handle external URL’s so that I can upload my doc’s/images to an external source rather than the app’s local file system. The FileSystem module reads mod…

---

## [Inheriting from ActiveRecord::Base with no DB table](https://www.ruby-forum.com/t/inheriting-from-activerecord-base-with-no-db-table/176659)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 2\
**Last updated:** [October 4, 2009, 5:39pm UTC](https://www.ruby-forum.com/t/inheriting-from-activerecord-base-with-no-db-table/176659 "2009-10-04T17:39:05Z")

</div>

Hi. I need to upload a CSV file in my application and I am trying to do so with a sample I found googling around, which defines a model that inherits from ActiveRecord::Base. The problem I am having is that whenever …

---

## [ActiveMerchant throws an invalid transaction error](https://www.ruby-forum.com/t/activemerchant-throws-an-invalid-transaction-error/176671)

<div class="topic-metadata">

**Author:** [@siddharth](https://www.ruby-forum.com/u/siddharth)\
**Replies:** 0\
**Last updated:** [October 4, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/activemerchant-throws-an-invalid-transaction-error/176671 "2009-10-04T16:30:09Z")

</div>

I am trying to incorporate ExpressCheckout with Paypal using Active Merchant and when I click on the express checkout button it takes me to the paypal site and gives me an error that says Invalid transaction error ple…

---

## [Good solution for two-way network socket?](https://www.ruby-forum.com/t/good-solution-for-two-way-network-socket/176661)

<div class="topic-metadata">

**Author:** [@jamie](https://www.ruby-forum.com/u/jamie)\
**Replies:** 0\
**Last updated:** [October 4, 2009, 11:46am UTC](https://www.ruby-forum.com/t/good-solution-for-two-way-network-socket/176661 "2009-10-04T11:46:07Z")

</div>

Hey, I want to make a chat app, that connects to a chat server with a background process. It gets messages from the chat server and data from the web user that it sends to the server. I was trying to use EventMachine…

---

## [Circular relationship - habtm](https://www.ruby-forum.com/t/circular-relationship-habtm/176654)

<div class="topic-metadata">

**Author:** [@mikec](https://www.ruby-forum.com/u/mikec)\
**Replies:** 1\
**Last updated:** [October 4, 2009, 4:03am UTC](https://www.ruby-forum.com/t/circular-relationship-habtm/176654 "2009-10-04T04:03:12Z")

</div>

So I have 2 models: Picture and Comment. Pictures have many Comments, but I’d like for users to be able to post Pictures in Comments, so Comments will have one Picture (possibly). This creates a kind of circular relat…

---

## [File upload problem](https://www.ruby-forum.com/t/file-upload-problem/176624)

<div class="topic-metadata">

**Author:** [@prem](https://www.ruby-forum.com/u/prem)\
**Replies:** 1\
**Last updated:** [October 4, 2009, 2:00am UTC](https://www.ruby-forum.com/t/file-upload-problem/176624 "2009-10-04T02:00:52Z")

</div>

Hi, I want to upload a file using rails.i am using file\_field and unable to access the input from form(rails view) in controller, i.e. in parameters it is not sending the file\_field input and it is sending …

---

## [Nice way to split an array into 3 equally sized pieces](https://www.ruby-forum.com/t/nice-way-to-split-an-array-into-3-equally-sized-pieces/125246)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 7\
**Last updated:** [October 3, 2009, 10:26pm UTC](https://www.ruby-forum.com/t/nice-way-to-split-an-array-into-3-equally-sized-pieces/125246 "2009-10-03T22:26:38Z")

</div>

before i start writing my own sophisticated small algorithm i thought i ask you guys how to do this in a rails way … given array: a = \[1, 2, 3, 4, 5, 6, 7\] out of this array i need an array b holding three elements w…

---

## [Knowing the parent of an object](https://www.ruby-forum.com/t/knowing-the-parent-of-an-object/176629)

<div class="topic-metadata">

**Author:** [@dddennisdennis734](https://www.ruby-forum.com/u/dddennisdennis734)\
**Replies:** 3\
**Last updated:** [October 3, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/knowing-the-parent-of-an-object/176629 "2009-10-03T21:57:22Z")

</div>

Hi, Considering this: @article = Article.first(:joins =\> :category) Does ActiveRecord provides a generique method such as .parent to call the @article category? Something like @article.parent which is the same as @a…

---

## [Flash Messages based on login session?](https://www.ruby-forum.com/t/flash-messages-based-on-login-session/176639)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 2\
**Last updated:** [October 3, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/flash-messages-based-on-login-session/176639 "2009-10-03T21:37:28Z")

</div>

Hi guys, I’m not sure how to start doing this, and I really hope I don’t sound very vague. Is there any function/helper that can be used to send a string containing a message to a user to display upon his (gender n…

---

## [Problem with cookie in IE](https://www.ruby-forum.com/t/problem-with-cookie-in-ie/176564)

<div class="topic-metadata">

**Author:** [@dharshannew](https://www.ruby-forum.com/u/dharshannew)\
**Replies:** 10\
**Last updated:** [October 3, 2009, 6:19pm UTC](https://www.ruby-forum.com/t/problem-with-cookie-in-ie/176564 "2009-10-03T18:19:38Z")

</div>

Hello , i am working on project which need cookie enable when i disable cookie from browser (IE 7 / IE 8)i am not able to login/signup because all depends on Session/cookies. So how can i make this work for Session w…

---

## [Developing a RIA with ExtJS and Rails - the best way](https://www.ruby-forum.com/t/developing-a-ria-with-extjs-and-rails-the-best-way/143240)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 9\
**Last updated:** [October 3, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/developing-a-ria-with-extjs-and-rails-the-best-way/143240 "2009-10-03T16:45:25Z")

</div>

Hello list, I’m developing an application in Rails and I’m using Extjs 2 for GUI/presentation stuff. I’ve found some plugins and helpers that claimed to solve some of the issues on Extjs and Rails integration. Howev…

---

## [Manning Date yyyy-mm-dd format](https://www.ruby-forum.com/t/manning-date-yyyy-mm-dd-format/176575)

<div class="topic-metadata">

**Author:** [@adedip](https://www.ruby-forum.com/u/adedip)\
**Replies:** 16\
**Last updated:** [October 3, 2009, 3:20pm UTC](https://www.ruby-forum.com/t/manning-date-yyyy-mm-dd-format/176575 "2009-10-03T15:20:32Z")

</div>

Hi everybody, I’ve read lot of thread about this topic but still can’t figure out the best practice to use. I’ve this entry with a Date attribute, in the yyyy-mm-dd form. I need to retrieve all the articles in a data…

---

## [Fragment caching strategy](https://www.ruby-forum.com/t/fragment-caching-strategy/176586)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 4\
**Last updated:** [October 3, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/fragment-caching-strategy/176586 "2009-10-03T13:45:07Z")

</div>

Right now, I have the :action\_suffix for a fragment I cache such that I can find it when I need to delete it from the cache. But an episode on Rails Casts gave the idea that another approach is to not worry about del…

---

## [The facebook button is not visible](https://www.ruby-forum.com/t/the-facebook-button-is-not-visible/176626)

<div class="topic-metadata">

**Author:** [@Mann](https://www.ruby-forum.com/u/Mann)\
**Replies:** 0\
**Last updated:** [October 3, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/the-facebook-button-is-not-visible/176626 "2009-10-03T12:57:42Z")

</div>

Hi, I developing my rails application to have a facebook connect facility. I followed the procedure of installing facebooker plugin , creating facebook apps to get app key & Id and all. But at the end the facebook …

---

## [Apache2.2 + what to get Rails](https://www.ruby-forum.com/t/apache2-2-what-to-get-rails/176412)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 17\
**Last updated:** [October 3, 2009, 11:06am UTC](https://www.ruby-forum.com/t/apache2-2-what-to-get-rails/176412 "2009-10-03T11:06:27Z")

</div>

Me: not experienced with Rails or Ruby, Problem: Ubuntu 9.04 server in my shop …couldn’t get Apache2.2 + Passenger + Rails to work for Redmine. (No answer at Redmine list and I don’t think its their problem anyway). …

---

## [Array and Set parameters in .find search](https://www.ruby-forum.com/t/array-and-set-parameters-in-find-search/176347)

<div class="topic-metadata">

**Author:** [@adedip](https://www.ruby-forum.com/u/adedip)\
**Replies:** 11\
**Last updated:** [October 3, 2009, 10:46am UTC](https://www.ruby-forum.com/t/array-and-set-parameters-in-find-search/176347 "2009-10-03T10:46:33Z")

</div>

Hi everybody… I’m getting crazy to understand how to make things working… I have to use both Solr and rails Find to filter search result, and I realized that the only option is to get the ids from the different searc…

---

## [Plural version of the model detected, using singularized version. Override with --force-plural](https://www.ruby-forum.com/t/plural-version-of-the-model-detected-using-singularized-version-override-with-force-plural/176609)

<div class="topic-metadata">

**Author:** [@Boar](https://www.ruby-forum.com/u/Boar)\
**Replies:** 2\
**Last updated:** [October 3, 2009, 10:23am UTC](https://www.ruby-forum.com/t/plural-version-of-the-model-detected-using-singularized-version-override-with-force-plural/176609 "2009-10-03T10:23:08Z")

</div>

what is the proper way to make this work? --force-plural doesn’t seem to change the results. this only seems to happen when you choose words that the plural and singular is the same word. script/generate scaffold eq…

---

## [Error occurs while using savage beast plugin](https://www.ruby-forum.com/t/error-occurs-while-using-savage-beast-plugin/176619)

<div class="topic-metadata">

**Author:** [@preksha](https://www.ruby-forum.com/u/preksha)\
**Replies:** 0\
**Last updated:** [October 3, 2009, 9:29am UTC](https://www.ruby-forum.com/t/error-occurs-while-using-savage-beast-plugin/176619 "2009-10-03T09:29:53Z")

</div>

Hi all, I am using savage-beast plugin for forum…i have integrated code with my application as given in readme file of savage-beast but now when i try to run /script/server it gives me following error: =\> Booting Mon…

---

## [\`const\_missing':NameError: uninitialized constant {const\_id}](https://www.ruby-forum.com/t/const-missing-uninitialized-constant-const-id/152938)

<div class="topic-metadata">

**Author:** [@thaniyarasu](https://www.ruby-forum.com/u/thaniyarasu)\
**Replies:** 1\
**Last updated:** [October 3, 2009, 7:21am UTC](https://www.ruby-forum.com/t/const-missing-uninitialized-constant-const-id/152938 "2009-10-03T07:21:27Z")

</div>

magic\_multi\_connection-1.2.1 -error when i start console i got this error C:/ruby/lib/ruby/gems/1.8/gems/magic\_multi\_connections-1.2.1/lib/magic\_multi\_connections/connected.rb:20:in \`const\_missing’:NameError: uninitia…

---

## [Anyone has used "nifty-generators" for your project?](https://www.ruby-forum.com/t/anyone-has-used-nifty-generators-for-your-project/176614)

<div class="topic-metadata">

**Author:** [@risknet](https://www.ruby-forum.com/u/risknet)\
**Replies:** 0\
**Last updated:** [October 3, 2009, 6:44am UTC](https://www.ruby-forum.com/t/anyone-has-used-nifty-generators-for-your-project/176614 "2009-10-03T06:44:16Z")

</div>

Hello, I just wonder if there is anyone who used “nifty-generators” for the actual project, and I like to hear your comments/feedbacks. It looks pretty good to me, and I like to try using it for my project. But, I li…

---

## [Cheapest Rails Hosting where they give you full access to Apache (to load modules etc)?](https://www.ruby-forum.com/t/cheapest-rails-hosting-where-they-give-you-full-access-to-apache-to-load-modules-etc/176188)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 8\
**Last updated:** [October 3, 2009, 5:02am UTC](https://www.ruby-forum.com/t/cheapest-rails-hosting-where-they-give-you-full-access-to-apache-to-load-modules-etc/176188 "2009-10-03T05:02:23Z")

</div>

any pointers / suggestions re cheapest Rails hosting where they give you full access to Apache (to load modules etc)??? Can be a shared platform, however not sure if there is a shared platform type hosting service wh…

---

## [Routes for common site area](https://www.ruby-forum.com/t/routes-for-common-site-area/176611)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 0\
**Last updated:** [October 3, 2009, 2:41am UTC](https://www.ruby-forum.com/t/routes-for-common-site-area/176611 "2009-10-03T02:41:56Z")

</div>

I have the following basic routes but I think they are competing. map.connect ‘purecontent/:controller/:action/:id’ map.connect ‘secure/:action/:id’, :controller =\> “secure” map.connect ‘:action/:id’, :controller =\> “…

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

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