# Rails

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

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

---

## [Two plugins replace one partial (Redmine)](https://www.ruby-forum.com/t/two-plugins-replace-one-partial-redmine/185822)

<div class="topic-metadata">

**Author:** [@knixknax](https://www.ruby-forum.com/u/knixknax)\
**Replies:** 0\
**Last updated:** [March 26, 2010, 5:44pm UTC](https://www.ruby-forum.com/t/two-plugins-replace-one-partial-redmine/185822 "2010-03-26T17:44:02Z")

</div>

Hi everybody, I develop any small plugins for Redmine (www.redmine.org) and have a questinon and became no anwer from the Redmine-Community… How can I modify different small parts of one partial with two plugins an i…

---

## [How to include a ruby gem environment.rb file?](https://www.ruby-forum.com/t/how-to-include-a-ruby-gem-environment-rb-file/185714)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 3\
**Last updated:** [March 26, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/how-to-include-a-ruby-gem-environment-rb-file/185714 "2010-03-26T17:32:55Z")

</div>

I’m doing a Web Service Based on a page I found (http://blog.complitech.net/web-services-basics-ruby-on-rails/) using the rails version 2.3.4, the web service is already working, but when working on a version Previous…

---

## [Converting TrueClass / FalseClass to integer](https://www.ruby-forum.com/t/converting-trueclass-falseclass-to-integer/185816)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 1\
**Last updated:** [March 26, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/converting-trueclass-falseclass-to-integer/185816 "2010-03-26T17:31:45Z")

</div>

Hello. I’m trying to figure out if there is an easy way to do the following short of adding to\_i method to TrueClass/FalseClass. Here is a dilemma: I have a boolean field in my rails app - that is obviously stored as …

---

## [Admin Sections & Roles](https://www.ruby-forum.com/t/admin-sections-roles/185796)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 2\
**Last updated:** [March 26, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/admin-sections-roles/185796 "2010-03-26T17:08:55Z")

</div>

Hey everyone. In the last app I made it was fairly straight forward. Front end for users, admin area for admin. This app is a little more complicated and I wanted your opinions on the best strategy. The site will ha…

---

## [Find id of newly created object](https://www.ruby-forum.com/t/find-id-of-newly-created-object/185811)

<div class="topic-metadata">

**Author:** [@droopy](https://www.ruby-forum.com/u/droopy)\
**Replies:** 2\
**Last updated:** [March 26, 2010, 4:17pm UTC](https://www.ruby-forum.com/t/find-id-of-newly-created-object/185811 "2010-03-26T16:17:24Z")

</div>

Hi there, I’m kind of a newbie, so pardon me if this is obvious I’m developing an app that has to accept creation of records from http requests such as http://my.domain.com/in/?text=some+text@alias=myName So I have …

---

## [Actionwebservice broken in production environment](https://www.ruby-forum.com/t/actionwebservice-broken-in-production-environment/184011)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 26, 2010, 3:33pm UTC](https://www.ruby-forum.com/t/actionwebservice-broken-in-production-environment/184011 "2010-03-26T15:33:29Z")

</div>

actionwebservice on rails 2.3.5 from github (http://github.com/ datanoise/actionwebservice) works in development mode but doesn’t seem to be loading in production. Anyone else have this problem or a solution?

---

## [Translating dynamic content](https://www.ruby-forum.com/t/translating-dynamic-content/185803)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 7\
**Last updated:** [March 26, 2010, 3:15pm UTC](https://www.ruby-forum.com/t/translating-dynamic-content/185803 "2010-03-26T15:15:34Z")

</div>

Hi all. I have a custom validation which produces an error message with dynamic content, like so: errors.add\_to\_base(“Must have exactly #{self.size} questions for a #{self.size}-question sequenced quiz”) Can anyone …

---

## [Timestamped records - including one off the front](https://www.ruby-forum.com/t/timestamped-records-including-one-off-the-front/185804)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 0\
**Last updated:** [March 26, 2010, 12:54pm UTC](https://www.ruby-forum.com/t/timestamped-records-including-one-off-the-front/185804 "2010-03-26T12:54:16Z")

</div>

Hi I have a table containing timestamped weather data. When I wish to show the weather for a day I use a named scope: named\_scope :by\_time\_range, lambda{ |time\_min, time\_max| {:conditions =\> \[‘measured\_at \>= ? and m…

---

## [Inline attachment](https://www.ruby-forum.com/t/inline-attachment/182215)

<div class="topic-metadata">

**Author:** [@charanya](https://www.ruby-forum.com/u/charanya)\
**Replies:** 2\
**Last updated:** [March 26, 2010, 12:34pm UTC](https://www.ruby-forum.com/t/inline-attachment/182215 "2010-03-26T12:34:21Z")

</div>

Hi All I followed this link http://blog.thoughtobject.com/2007/05/26/5/ and installed inline-attachment for attaching image files in my mails. But when i add this @cid = Time.now.to\_f.to\_s + “removed\_email\_address@do…

---

## [Google chrome with prototype issue](https://www.ruby-forum.com/t/google-chrome-with-prototype-issue/185727)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 4\
**Last updated:** [March 26, 2010, 6:14am UTC](https://www.ruby-forum.com/t/google-chrome-with-prototype-issue/185727 "2010-03-26T06:14:10Z")

</div>

Dear all, I am using prototype js in my rails application and making many ajax calls using that. everything works fine in IE and FF but new Ajax.request() is not working in chrome and safari. any solution will be gre…

---

## [Searching a record](https://www.ruby-forum.com/t/searching-a-record/185790)

<div class="topic-metadata">

**Author:** [@newnw](https://www.ruby-forum.com/u/newnw)\
**Replies:** 3\
**Last updated:** [March 26, 2010, 5:20am UTC](https://www.ruby-forum.com/t/searching-a-record/185790 "2010-03-26T05:20:43Z")

</div>

I have a table called project. I want to make a search window to search particuler project details when I enter the project name. I have done followings. create a project controller and insert def search @project = …

---

## [ActionMailer configuration for Solaris and mailx](https://www.ruby-forum.com/t/actionmailer-configuration-for-solaris-and-mailx/185782)

<div class="topic-metadata">

**Author:** [@rtacconi](https://www.ruby-forum.com/u/rtacconi)\
**Replies:** 0\
**Last updated:** [March 26, 2010, 12:15am UTC](https://www.ruby-forum.com/t/actionmailer-configuration-for-solaris-and-mailx/185782 "2010-03-26T00:15:49Z")

</div>

Does anyone knows how to configure ActionMailer with Solaris and mailx?

---

## [New college student](https://www.ruby-forum.com/t/new-college-student/185715)

<div class="topic-metadata">

**Author:** [@Gramma44](https://www.ruby-forum.com/u/Gramma44)\
**Replies:** 5\
**Last updated:** [March 26, 2010, 12:14am UTC](https://www.ruby-forum.com/t/new-college-student/185715 "2010-03-26T00:14:03Z")

</div>

Hello, all! My son is applying to different colleges and is interested in a possible career using the Ruby on Rails. Any suggestions as to programs or colleges that would be a benefit? He would like to start at the co…

---

## [Collection\_select has\_many](https://www.ruby-forum.com/t/collection-select-has-many/185244)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 3\
**Last updated:** [March 26, 2010, 12:12am UTC](https://www.ruby-forum.com/t/collection-select-has-many/185244 "2010-03-26T00:12:53Z")

</div>

hi i have two models: GeoRegion & GeoRegionSub which have a has\_many relation to each other. how can include the has\_many relation in the collection\_select helper? i want to have that dropdown where the parent is in…

---

## [Rails 3.0 + haml render partial ActionView::MissingTemplate](https://www.ruby-forum.com/t/rails-3-0-haml-render-partial-actionview-missingtemplate/185780)

<div class="topic-metadata">

**Author:** [@tcc](https://www.ruby-forum.com/u/tcc)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/rails-3-0-haml-render-partial-actionview-missingtemplate/185780 "2010-03-25T23:43:38Z")

</div>

I’m upgrading one of my apps to rails 3.0 I get this error: ActionView::MissingTemplate Missing partial /layouts/header with {:formats=\>nil} in view path for: = render :partial =\> “layouts/header” the file is in vi…

---

## [Is every request one thread?](https://www.ruby-forum.com/t/is-every-request-one-thread/185778)

<div class="topic-metadata">

**Author:** [@S\_simon\_S](https://www.ruby-forum.com/u/S_simon_S)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 11:33pm UTC](https://www.ruby-forum.com/t/is-every-request-one-thread/185778 "2010-03-25T23:33:02Z")

</div>

I am asking because the documentation in ConnectionPool states that “The basic idea is that each thread checks out a database connection from the pool, uses that connection, and checks the connection back in.” I wou…

---

## [Flash error & fade away](https://www.ruby-forum.com/t/flash-error-fade-away/185710)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 3\
**Last updated:** [March 25, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/flash-error-fade-away/185710 "2010-03-25T22:07:03Z")

</div>

this is my current code: #notice { border: solid 1px #99cc99; background-color: #e2f9e3; color: #006600; padding: 5px; margin-bottom: 5px; } #notice.error { border-color: #e2f9e3; background-color: #eeaaaa; co…

---

## [Trying to use sphinx search engine](https://www.ruby-forum.com/t/trying-to-use-sphinx-search-engine/185678)

<div class="topic-metadata">

**Author:** [@Sumeet\_P](https://www.ruby-forum.com/u/Sumeet_P)\
**Replies:** 4\
**Last updated:** [March 25, 2010, 9:22pm UTC](https://www.ruby-forum.com/t/trying-to-use-sphinx-search-engine/185678 "2010-03-25T21:22:12Z")

</div>

Hi, All any kind of help is appreciated. and thanks a lot. I have to apply sphinx search on my project. My development environment is windows, My SQL, Ruby R. but the project is deployed on Ubuntu. Q1 ) Can I use sp…

---

## [Updating sub-attirbutes without selecting the parent](https://www.ruby-forum.com/t/updating-sub-attirbutes-without-selecting-the-parent/185771)

<div class="topic-metadata">

**Author:** [@xman2000](https://www.ruby-forum.com/u/xman2000)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/updating-sub-attirbutes-without-selecting-the-parent/185771 "2010-03-25T20:45:52Z")

</div>

I am working on an application and need to be able to update a single field of nested record in the applications. For instance, Library has\_many Books Book has\_many Chapters I would like to be able to have a single …

---

## [Dup a Constant](https://www.ruby-forum.com/t/dup-a-constant/185747)

<div class="topic-metadata">

**Author:** [@korn900](https://www.ruby-forum.com/u/korn900)\
**Replies:** 4\
**Last updated:** [March 25, 2010, 8:38pm UTC](https://www.ruby-forum.com/t/dup-a-constant/185747 "2010-03-25T20:38:06Z")

</div>

I have a constant in my helper : MYCONSTANT = { :opt =\> { :title =\> “abcdef” } } In my view : \<% joke = PeopleHelpers::MYCONSTANT.dup joke\[:opt\]\[:title\] = nil #if i debug there, PeopleHelpers::MYCONSTANT = {:opt =\> …

---

## [More elegant solution for "missing" has-many through ids?](https://www.ruby-forum.com/t/more-elegant-solution-for-missing-has-many-through-ids/185697)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 3\
**Last updated:** [March 25, 2010, 7:16pm UTC](https://www.ruby-forum.com/t/more-elegant-solution-for-missing-has-many-through-ids/185697 "2010-03-25T19:16:10Z")

</div>

I have LabGroup and LabDesc which have many through LabDescGroup. I’d like to identify LabDescs which don’t have a LabGroup. This works: x = \[\] LabDescGroup.find( :all, :select =\> ‘DISTINCT lab\_desc\_id’ ).each{ |c| …

---

## [Redirection in format.json](https://www.ruby-forum.com/t/redirection-in-format-json/185629)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 7\
**Last updated:** [March 25, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/redirection-in-format-json/185629 "2010-03-25T19:14:59Z")

</div>

I have presently a render :json which modify the current page if @request.save format.html { redirect\_to(@request) } format.json { render :json =\> { :result =\> 'success', :request =\> request\_path(@request) …

---

## [Threading and it is more of a ruby question, than a rails question](https://www.ruby-forum.com/t/threading-and-it-is-more-of-a-ruby-question-than-a-rails-question/185762)

<div class="topic-metadata">

**Author:** [@n4d4](https://www.ruby-forum.com/u/n4d4)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/threading-and-it-is-more-of-a-ruby-question-than-a-rails-question/185762 "2010-03-25T19:09:43Z")

</div>

I needed an email queueing system for a project I am writing. The script below runs every minute via a cronjob on one of my servers. I am using a table in mysql to keep track of the number of email bot threads to s…

---

## [Changing application version](https://www.ruby-forum.com/t/changing-application-version/185764)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 2\
**Last updated:** [March 25, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/changing-application-version/185764 "2010-03-25T18:58:36Z")

</div>

I have an application on Rails 2.0.2 and I want to update it to Rails 2.3.4. Do I need to do a new application and I only copy and paste the necesary files? Or, Do I can to do another thing? I tried with: rake rails…

---

## [Created a gem 'watir\_helper' for making Automation Testing Simpler and Easier](https://www.ruby-forum.com/t/created-a-gem-watir-helper-for-making-automation-testing-simpler-and-easier/185763)

<div class="topic-metadata">

**Author:** [@Ankur\_Gera](https://www.ruby-forum.com/u/Ankur_Gera)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/created-a-gem-watir-helper-for-making-automation-testing-simpler-and-easier/185763 "2010-03-25T18:45:43Z")

</div>

Hi All, I have created a gem ‘watir\_helper’ for making Automation Testing Simpler and Easier.You all can download it from the following link :- http://github.com/ankurgera/ankur\_watir\_helper Also i have attached a s…

---

## [I18n::backend::cache cache\_key collisions](https://www.ruby-forum.com/t/i18n-cache-cache-key-collisions/185760)

<div class="topic-metadata">

**Author:** [@mr.kamel](https://www.ruby-forum.com/u/mr.kamel)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/i18n-cache-cache-key-collisions/185760 "2010-03-25T18:43:55Z")

</div>

Hi, i don’t find any useful information about my issue and i hope someone can help me out. please correct me if i’m wrong… i18n::backend::cache uses the cache\_key method to create a key for caching, right?! on line…

---

## [Order by an h\_m\_t association, pushing a value to the top](https://www.ruby-forum.com/t/order-by-an-h-m-t-association-pushing-a-value-to-the-top/185755)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [March 25, 2010, 5:55pm UTC](https://www.ruby-forum.com/t/order-by-an-h-m-t-association-pushing-a-value-to-the-top/185755 "2010-03-25T17:55:10Z")

</div>

Hi all. Let’s say that quizzes have many tags, through taggings. I’m doing a search on quizzes, including various other associations, and passing in various conditions, such as “quizzes.name like ‘%english%’” or “qui…

---

## [Simple application monitoring](https://www.ruby-forum.com/t/simple-application-monitoring/185754)

<div class="topic-metadata">

**Author:** [@Owain](https://www.ruby-forum.com/u/Owain)\
**Replies:** 3\
**Last updated:** [March 25, 2010, 5:38pm UTC](https://www.ruby-forum.com/t/simple-application-monitoring/185754 "2010-03-25T17:38:19Z")

</div>

I have just had a server halt itself and it took me some time to notice. I am planning on implementing some application monitoring using an external service that polls the website from outside. If it can’t reach it …

---

## [Complex alternative to Ajax polling](https://www.ruby-forum.com/t/complex-alternative-to-ajax-polling/185753)

<div class="topic-metadata">

**Author:** [@Jedrin](https://www.ruby-forum.com/u/Jedrin)\
**Replies:** 1\
**Last updated:** [March 25, 2010, 5:31pm UTC](https://www.ruby-forum.com/t/complex-alternative-to-ajax-polling/185753 "2010-03-25T17:31:52Z")

</div>

I had seen that many of the periodic update methods looking for changes to display in the browser in the rails book poll the server every so many seconds which seems to generate alot of traffic. A project that I had b…

---

## [How can I convert the next line in Rails 2.3.4 to Rails 2.0](https://www.ruby-forum.com/t/how-can-i-convert-the-next-line-in-rails-2-3-4-to-rails-2-0/185757)

<div class="topic-metadata">

**Author:** [@jorgegetafe](https://www.ruby-forum.com/u/jorgegetafe)\
**Replies:** 0\
**Last updated:** [March 25, 2010, 5:30pm UTC](https://www.ruby-forum.com/t/how-can-i-convert-the-next-line-in-rails-2-3-4-to-rails-2-0/185757 "2010-03-25T17:30:30Z")

</div>

How can I convert the next line in Rails 2.3.4 to Rails 2.0.2? config.gem ‘panztel-actionwebservice’, :lib =\> ‘actionwebservice’ I have this in my environment.rb file: #------------------------------------------------…

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

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