# Rails

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

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

---

## [Render view (not partial view) from dynamic rhtml string](https://www.ruby-forum.com/t/render-view-not-partial-view-from-dynamic-rhtml-string/140613)

<div class="topic-metadata">

**Author:** [@betame342](https://www.ruby-forum.com/u/betame342)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 9:44pm UTC](https://www.ruby-forum.com/t/render-view-not-partial-view-from-dynamic-rhtml-string/140613 "2008-06-16T21:44:40Z")

</div>

Hi, Any one know how to render dynamic view (like render inline but for file) from database instead of file? For example: instead of using “/comments/index.rhtml” as a view, it will automatically inject the a string…

---

## [Simple file upload example wanted](https://www.ruby-forum.com/t/simple-file-upload-example-wanted/196715)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/simple-file-upload-example-wanted/196715 "2008-06-16T21:22:26Z")

</div>

Can anyone point me to a simple file upload example. I wan to grab a file from a local machine - so browse button, find file, submit, copy file to Applicationname/data. Thanks, Lynn

---

## [Rails Conf 2008 Videos Online](https://www.ruby-forum.com/t/rails-conf-2008-videos-online/140592)

<div class="topic-metadata">

**Author:** [@ChessMess](https://www.ruby-forum.com/u/ChessMess)\
**Replies:** 3\
**Last updated:** [June 16, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/rails-conf-2008-videos-online/140592 "2008-06-16T21:09:29Z")

</div>

I was wondering if anyone knew when/if any of the RailsConf 08 videos will be posted online, such as the ones from 07 that you can find at Confreaks.com?

---

## [Storing and accessing message strings](https://www.ruby-forum.com/t/storing-and-accessing-message-strings/140615)

<div class="topic-metadata">

**Author:** [@kim](https://www.ruby-forum.com/u/kim)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/storing-and-accessing-message-strings/140615 "2008-06-16T20:55:53Z")

</div>

I want to store my notices, feedback and messages in a separate file and then access them in my views, like how JSP handles its Property.messages. What’s the best way to do this? Thanks in advance - K

---

## [Rake db:migrate and script/console in wrong environment](https://www.ruby-forum.com/t/rake-db-migrate-and-script-console-in-wrong-environment/140600)

<div class="topic-metadata">

**Author:** [@gregthegerg](https://www.ruby-forum.com/u/gregthegerg)\
**Replies:** 3\
**Last updated:** [June 16, 2008, 8:06pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-and-script-console-in-wrong-environment/140600 "2008-06-16T20:06:50Z")

</div>

Hi, I have the production version of my rails site hosted on a server. (I uncommented the line “ENV\[‘RAILS\_ENV’\] ||= ‘production’” in the environment.rb file). I know it’s running in production mode because I can tel…

---

## [Rails Time.now and system locale](https://www.ruby-forum.com/t/rails-time-now-and-system-locale/87737)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 7:42pm UTC](https://www.ruby-forum.com/t/rails-time-now-and-system-locale/87737 "2008-06-16T19:42:32Z")

</div>

hi everyone, I have a problem with dates output. Actually if in Rails’ ./script/console I send a “Time.now” I get a localized date, something like: “lun mar 05 19:33:00 CET 2007” Actually my server has environment va…

---

## [AR Callbacks not called](https://www.ruby-forum.com/t/ar-callbacks-not-called/140603)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 7:18pm UTC](https://www.ruby-forum.com/t/ar-callbacks-not-called/140603 "2008-06-16T19:18:16Z")

</div>

I have an AR model with a has\_one association. AFAICT, using a straightforward logger that works everywhere else, callbacks on on the associated model never get called. I’ve put logger lines in the parent model and in…

---

## [Finding out what models exist in your application](https://www.ruby-forum.com/t/finding-out-what-models-exist-in-your-application/140601)

<div class="topic-metadata">

**Author:** [@saljamil](https://www.ruby-forum.com/u/saljamil)\
**Replies:** 3\
**Last updated:** [June 16, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/finding-out-what-models-exist-in-your-application/140601 "2008-06-16T19:05:52Z")

</div>

Is there a way to reflect in Rails and find out what models are defined in your application? Maybe generate an Array with model names? Thanks

---

## [Activerecord transaction](https://www.ruby-forum.com/t/activerecord-transaction/140596)

<div class="topic-metadata">

**Author:** [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 6:49pm UTC](https://www.ruby-forum.com/t/activerecord-transaction/140596 "2008-06-16T18:49:59Z")

</div>

hello all I have one form… which provide data to three tables, 3 Models. i am trying to setup a transaction for save statement. seems like i am missing something… as this is not working properly. following is my code…

---

## [ActionMailer sending mail, but never received](https://www.ruby-forum.com/t/actionmailer-sending-mail-but-never-received/140599)

<div class="topic-metadata">

**Author:** [@gregthegerg](https://www.ruby-forum.com/u/gregthegerg)\
**Replies:** 5\
**Last updated:** [June 16, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/actionmailer-sending-mail-but-never-received/140599 "2008-06-16T18:35:10Z")

</div>

Hey, I’m using ActionMailer to send emails, but the recipient never receives them. Here’s the method in my Notifier class: def order\_placed(order) recipients order.user.email from “removed\_email\_address@doma…

---

## [How to ajaxify?](https://www.ruby-forum.com/t/how-to-ajaxify/140552)

<div class="topic-metadata">

**Author:** [@Davi\_V](https://www.ruby-forum.com/u/Davi_V)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/how-to-ajaxify/140552 "2008-06-16T18:16:14Z")

</div>

Hi all. I’m doing my own blog-like site, so I’ve an Post controller and an Comments controller and I want to ajaxify my comments form. So, I’ve did the following: \[comments\_controller.rb\] class CommentsController \< …

---

## [Easy refactoring to foxy fixtures?](https://www.ruby-forum.com/t/easy-refactoring-to-foxy-fixtures/139419)

<div class="topic-metadata">

**Author:** [@bruz](https://www.ruby-forum.com/u/bruz)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 4:57pm UTC](https://www.ruby-forum.com/t/easy-refactoring-to-foxy-fixtures/139419 "2008-06-16T16:57:09Z")

</div>

Foxy fixtures (http://ryandaigle.com/articles/2007/10/26/what-s-new-in- edge-rails-fixtures-just-got-a-whole-lot-easier) are great for new projects, and I’d like to refactor fixtures in existing projects to make them …

---

## [Need help preparing a 'Sitemap.xml' file using a Rake](https://www.ruby-forum.com/t/need-help-preparing-a-sitemap-xml-file-using-a-rake/140593)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/need-help-preparing-a-sitemap-xml-file-using-a-rake/140593 "2008-06-16T16:54:07Z")

</div>

After having my websites up for a few months and wondering why my content is not exposed through search engines, I discovered SITEMAPS! I’ve done a Google for explanations of how this is accomplished and found these l…

---

## [Managing Application Preferences...?](https://www.ruby-forum.com/t/managing-application-preferences/140543)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/managing-application-preferences/140543 "2008-06-16T16:00:39Z")

</div>

Hi All, I’m looking to manage a few system preferences that are available only to the administrator – things like “post\_expiration”, “post\_max\_length”, etc. I was going to create a table and have a one- to-many rela…

---

## [Rails Dev wanted in Adelaide, Australia](https://www.ruby-forum.com/t/rails-dev-wanted-in-adelaide-australia/140590)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 3:58pm UTC](https://www.ruby-forum.com/t/rails-dev-wanted-in-adelaide-australia/140590 "2008-06-16T15:58:54Z")

</div>

Hi All, We need another Rails guy/girl or two for full time or contract positions. We are doing a large scale social networking site (amongst other things). Pay is good, small team, flexible hours and we can help peo…

---

## [Rake db:migrate gives error](https://www.ruby-forum.com/t/rake-db-migrate-gives-error/140587)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 3\
**Last updated:** [June 16, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-gives-error/140587 "2008-06-16T15:50:52Z")

</div>

Hi, when I am running rake db:migrate command on my application it gives me “undefined method \`last’ for {}:Hash error”, how to resolve this error?

---

## [Routing issue/bug?](https://www.ruby-forum.com/t/routing-issue-bug/140500)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 8\
**Last updated:** [June 16, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/routing-issue-bug/140500 "2008-06-16T15:40:31Z")

</div>

For some reason the following form always sends me to the index action \<% form\_for :league, :url =\> admin\_leagues\_url do |f| %\> … \<% end %\> If I set the :url to leagues\_url (to which is also set in the routes file) …

---

## [Backgroundrb problem with linux machine?](https://www.ruby-forum.com/t/backgroundrb-problem-with-linux-machine/196716)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [June 16, 2008, 3:36pm UTC](https://www.ruby-forum.com/t/backgroundrb-problem-with-linux-machine/196716 "2008-06-16T15:36:15Z")

</div>

Hi All, I wanna implement backgroundrb in my project but what happened it’s not working fine on linux machine i did same thing on window machine it’s working fine but on linux machine not working fine. Please help me…

---

## [\[ANN\]\[ADV\] Ruby Hoedown 2008 Talks Selected and Registration Open!](https://www.ruby-forum.com/t/ann-adv-ruby-hoedown-2008-talks-selected-and-registration-open/140093)

<div class="topic-metadata">

**Author:** [@Jeremy\_McAnally](https://www.ruby-forum.com/u/Jeremy_McAnally)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/ann-adv-ruby-hoedown-2008-talks-selected-and-registration-open/140093 "2008-06-16T15:31:34Z")

</div>

Hello all! I’m really excited to announce that the Ruby Hoedown (sponsored by Engine Y. and Hashrocket) has completed its CFP and has selected talks. Here are the selections: Archaeopteryx: A Ruby MIDI Generator (G…

---

## [Ruby on Rails 2.1 Tutorial](https://www.ruby-forum.com/t/ruby-on-rails-2-1-tutorial/140533)

<div class="topic-metadata">

**Author:** [@mcmohd](https://www.ruby-forum.com/u/mcmohd)\
**Replies:** 5\
**Last updated:** [June 16, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-2-1-tutorial/140533 "2008-06-16T13:54:50Z")

</div>

Hi, I have put all the basic things in place and you will find it a working tutorial for Ruby on Rails 2.1. I have covered Model, Controller and Views in detail and you will find a nice example on scaffolding. If …

---

## [Find Class not found When I call it from Controller](https://www.ruby-forum.com/t/find-class-not-found-when-i-call-it-from-controller/140582)

<div class="topic-metadata">

**Author:** [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 1:54pm UTC](https://www.ruby-forum.com/t/find-class-not-found-when-i-call-it-from-controller/140582 "2008-06-16T13:54:14Z")

</div>

Following generic method just tries to read some files that match a pattern . It uses the Find class which is throwing an error\[1\] def loadFiles(dir) logger.debug “\>\> dir : #{dir}” messages = \[\] Find.find(dir) do |f…

---

## [Call\_backs Is it?](https://www.ruby-forum.com/t/call-backs-is-it/140574)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 1:30pm UTC](https://www.ruby-forum.com/t/call-backs-is-it/140574 "2008-06-16T13:30:55Z")

</div>

Hi I have the models 1.ServiceDeskTicket with fields id — number — service\_desk\_status\_id – created\_on – updated\_on etc 2.ServiceDeskActivity with fields id – service\_desk\_ticket\_id – description – created\_on – u…

---

## [RJS in action vs .js file (page object)](https://www.ruby-forum.com/t/rjs-in-action-vs-js-file-page-object/140572)

<div class="topic-metadata">

**Author:** [@reynar](https://www.ruby-forum.com/u/reynar)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 12:19pm UTC](https://www.ruby-forum.com/t/rjs-in-action-vs-js-file-page-object/140572 "2008-06-16T12:19:47Z")

</div>

Hi, Would anyone be able to suggest why the following works in the action but not when placed in a .js file, called by the action? It’s the page \<\< “$(‘basket\_popup’).popup.show();” line I’m interested in. def show …

---

## [File\_field on widows](https://www.ruby-forum.com/t/file-field-on-widows/140573)

<div class="topic-metadata">

**Author:** [@qwerty73](https://www.ruby-forum.com/u/qwerty73)\
**Replies:** 4\
**Last updated:** [June 16, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/file-field-on-widows/140573 "2008-06-16T12:15:56Z")

</div>

Hi to all, i’m trying to upload a pdf or doc file on my server. My code works under linux, but now i move my app to a windows server and the documents (both pdf and doc) are not uplaoded correctly. Here it’s my form …

---

## [ROR - Crystal Reports Integration Solution](https://www.ruby-forum.com/t/ror-crystal-reports-integration-solution/140064)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 2\
**Last updated:** [June 16, 2008, 11:40am UTC](https://www.ruby-forum.com/t/ror-crystal-reports-integration-solution/140064 "2008-06-16T11:40:24Z")

</div>

Hi, I have done the ROR and Crystal Reports integration using the Java API. Please visit my blog on http://kkarthik.wordpress.com/ for the steps. It will be helpful. Thanks, Karthik.

---

## [Changing the style of in\_place\_editor\_field](https://www.ruby-forum.com/t/changing-the-style-of-in-place-editor-field/140554)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 11:19am UTC](https://www.ruby-forum.com/t/changing-the-style-of-in-place-editor-field/140554 "2008-06-16T11:19:42Z")

</div>

Hi… I’m using in\_place\_editor\_field. I want to change the default style of in\_place\_editor\_field. I need to apply another style for the label, the yellow and white highlighting color. I tried \<%= in\_place\_editor\_fie…

---

## [Radio button onclick](https://www.ruby-forum.com/t/radio-button-onclick/196714)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 5\
**Last updated:** [June 16, 2008, 10:33am UTC](https://www.ruby-forum.com/t/radio-button-onclick/196714 "2008-06-16T10:33:21Z")

</div>

i am trying to do some thing with radio button. my main tergate is that i have 2 radio button and 2 text field. when i click on a radio button1, then the corrosponding text field say text1 will b active, and another t…

---

## [Can we add a string to a instance varaiable](https://www.ruby-forum.com/t/can-we-add-a-string-to-a-instance-varaiable/140557)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 6\
**Last updated:** [June 16, 2008, 9:59am UTC](https://www.ruby-forum.com/t/can-we-add-a-string-to-a-instance-varaiable/140557 "2008-06-16T09:59:30Z")

</div>

HI , can we add a string to an instance variable like @jan+"#{users}"=User.find(:all) because i’ve the same query to be executed for both User and Post, for every month jan…dec. so can i write a method which contain…

---

## [Why can I not see database records during a Unit Test (when I use a breakpoint)](https://www.ruby-forum.com/t/why-can-i-not-see-database-records-during-a-unit-test-when-i-use-a-breakpoint/140535)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 9:55am UTC](https://www.ruby-forum.com/t/why-can-i-not-see-database-records-during-a-unit-test-when-i-use-a-breakpoint/140535 "2008-06-16T09:55:23Z")

</div>

Hi, I’m getting into Unit Testing, however I’ve noted when I am using a breakpoint (with NetBeans IDE) half way through a unit test, although in the Unit Test it has already successfully created some rows, when I loo…

---

## [Dynamic controller code](https://www.ruby-forum.com/t/dynamic-controller-code/140559)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 1\
**Last updated:** [June 16, 2008, 9:41am UTC](https://www.ruby-forum.com/t/dynamic-controller-code/140559 "2008-06-16T09:41:48Z")

</div>

is it possible to dynamically create controller code?? for example if you have a parent element @parent and children element @parent.daughter and @parent.son. @parent.daughter.class = daughter @parent.son.class = son …

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

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