# Rails

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

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

---

## [Domain names within app](https://www.ruby-forum.com/t/domain-names-within-app/176763)

<div class="topic-metadata">

**Author:** [@clark](https://www.ruby-forum.com/u/clark)\
**Replies:** 2\
**Last updated:** [October 6, 2009, 6:39am UTC](https://www.ruby-forum.com/t/domain-names-within-app/176763 "2009-10-06T06:39:31Z")

</div>

Hi- I have an shopping cart rails app. I would like to be able to host multiple domain names within the same shopping cart application. I would like to be able to detect the domain name, and then set a parameter tha…

---

## [The only time you should use STI is when](https://www.ruby-forum.com/t/the-only-time-you-should-use-sti-is-when/176777)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 5:40am UTC](https://www.ruby-forum.com/t/the-only-time-you-should-use-sti-is-when/176777 "2009-10-06T05:40:19Z")

</div>

…the record changes between STI models/classes.

---

## [Mongrel hanging with high CPU usage](https://www.ruby-forum.com/t/mongrel-hanging-with-high-cpu-usage/140833)

<div class="topic-metadata">

**Author:** [@jfrench](https://www.ruby-forum.com/u/jfrench)\
**Replies:** 8\
**Last updated:** [October 6, 2009, 5:35am UTC](https://www.ruby-forum.com/t/mongrel-hanging-with-high-cpu-usage/140833 "2009-10-06T05:35:52Z")

</div>

I’m running a mongrel cluster behind Apache + mod\_proxy. Several times a day, one Mongrel will spike to 99-101% CPU usage and freeze there. The standard mongrel\_rails restart command won’t affect it, nor will it respo…

---

## [How to create editable data grid using rails?](https://www.ruby-forum.com/t/how-to-create-editable-data-grid-using-rails/176774)

<div class="topic-metadata">

**Author:** [@C\_K\_Kashyap](https://www.ruby-forum.com/u/C_K_Kashyap)\
**Replies:** 0\
**Last updated:** [October 6, 2009, 4:49am UTC](https://www.ruby-forum.com/t/how-to-create-editable-data-grid-using-rails/176774 "2009-10-06T04:49:58Z")

</div>

Hi All, I need to work with an editable data grid. I have not found anything yet - Extjs seems good. But I want to make sure if Rails does not already have something built in or something more rails like already avai…

---

## [Newcomer of ROR](https://www.ruby-forum.com/t/newcomer-of-ror/176759)

<div class="topic-metadata">

**Author:** [@silver](https://www.ruby-forum.com/u/silver)\
**Replies:** 2\
**Last updated:** [October 6, 2009, 2:31am UTC](https://www.ruby-forum.com/t/newcomer-of-ror/176759 "2009-10-06T02:31:15Z")

</div>

I was trying to build a blog webpage. I followed the steps of cookbook2. Now I want to add some new functions to my blog system.That is, I want to show all blogs that belongs to one category when I click the category’…

---

## [Mongrel, static files, and haproxy healtchecks](https://www.ruby-forum.com/t/mongrel-static-files-and-haproxy-healtchecks/176664)

<div class="topic-metadata">

**Author:** [@buddy12lbcat](https://www.ruby-forum.com/u/buddy12lbcat)\
**Replies:** 1\
**Last updated:** [October 6, 2009, 1:28am UTC](https://www.ruby-forum.com/t/mongrel-static-files-and-haproxy-healtchecks/176664 "2009-10-06T01:28:02Z")

</div>

hi, a question to the group: am i right in thinking that rails routing occurs outside (before) the mutex lock on dispatch such that static files get served up on a different thread than rails script requests. they bo…

---

## [Problem using ActiveRecord find with :joins and :select](https://www.ruby-forum.com/t/problem-using-activerecord-find-with-joins-and-select/176697)

<div class="topic-metadata">

**Author:** [@PierreW](https://www.ruby-forum.com/u/PierreW)\
**Replies:** 3\
**Last updated:** [October 6, 2009, 12:14am UTC](https://www.ruby-forum.com/t/problem-using-activerecord-find-with-joins-and-select/176697 "2009-10-06T00:14:17Z")

</div>

Hi guys, When I do: temp = User.find(:all, :joins =\> “INNER JOIN contents ON users.agent\_id = contents.id”, :select =\> “contents.id, users.id, users.u\_date”) temp.first.inspect It seems to work fine, but it only r…

---

## [Validation message for update](https://www.ruby-forum.com/t/validation-message-for-update/176762)

<div class="topic-metadata">

**Author:** [@Gayu](https://www.ruby-forum.com/u/Gayu)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/validation-message-for-update/176762 "2009-10-05T23:41:30Z")

</div>

I have used the same method as you suggested.But Error message is not gets updated to master table when there is no other errors in it.kindly update me solution for this.

---

## [Undefined method \`^' for "d":String](https://www.ruby-forum.com/t/undefined-method-for-d-string/175398)

<div class="topic-metadata">

**Author:** [@LFLFLF](https://www.ruby-forum.com/u/LFLFLF)\
**Replies:** 5\
**Last updated:** [October 5, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/undefined-method-for-d-string/175398 "2009-10-05T23:41:30Z")

</div>

Hi guys. I’m a freshman on Rails (and Ruby) so I’m sorry if my question is pretty basic, and possible has a vary basic answer. I tried to Google this problem, but a couple of hour after and no solution found, I decid…

---

## [Doing creates on has\_many\_through associations with :conditions?](https://www.ruby-forum.com/t/doing-creates-on-has-many-through-associations-with-conditions/176761)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/doing-creates-on-has-many-through-associations-with-conditions/176761 "2009-10-05T23:39:45Z")

</div>

I’m confused about something I thought should work. I have tables Users and Blogs, joined together through Memberships. Membership also has a boolean for moderator-ness. So, the Blog model looks like this: class Blo…

---

## [NEWBIE using flickr\_fu, impossible to retrieve a user's tags list](https://www.ruby-forum.com/t/newbie-using-flickr-fu-impossible-to-retrieve-a-users-tags-list/176760)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/newbie-using-flickr-fu-impossible-to-retrieve-a-users-tags-list/176760 "2009-10-05T23:39:45Z")

</div>

Retrieving images using tags : OK! def index flickr = Flickr.new(File.join(RAILS\_ROOT, ‘config’, ‘flickr.yml’)) @photos = flickr.photos.search(:user\_id =\> “12323423432@N05”, :tags =\> params\[:tag\], … end How can I re…

---

## [ActiveRecord Polymorphic Inheritance](https://www.ruby-forum.com/t/activerecord-polymorphic-inheritance/176755)

<div class="topic-metadata">

**Author:** [@rubynewbie](https://www.ruby-forum.com/u/rubynewbie)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/activerecord-polymorphic-inheritance/176755 "2009-10-05T22:34:10Z")

</div>

I am using RoR ActiveRecord polymorphic inheritance and was wondering if it’s possible to access the base class’ association methods in the invocation of either to\_xml or to\_json without having to depict the base clas…

---

## [Get and Set method in Ruby on Rails](https://www.ruby-forum.com/t/get-and-set-method-in-ruby-on-rails/176700)

<div class="topic-metadata">

**Author:** [@venki](https://www.ruby-forum.com/u/venki)\
**Replies:** 2\
**Last updated:** [October 5, 2009, 10:16pm UTC](https://www.ruby-forum.com/t/get-and-set-method-in-ruby-on-rails/176700 "2009-10-05T22:16:01Z")

</div>

Hi, I working on Ruby on Rails.I using Ajax in that.While using pagination in my application first time only I want to give request to Mysql Data Base ,If user click second page it should not take from database. Here …

---

## [Auto\_link open new window](https://www.ruby-forum.com/t/auto-link-open-new-window/176749)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [October 5, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/auto-link-open-new-window/176749 "2009-10-05T21:10:26Z")

</div>

This code is not opening the link in a new window. Any ideas? \<%= auto\_link(@post, :href\_options =\> { :target =\> ‘\_blank’ }) %\>

---

## [Friendly "From Address"](https://www.ruby-forum.com/t/friendly-from-address/176747)

<div class="topic-metadata">

**Author:** [@ian](https://www.ruby-forum.com/u/ian)\
**Replies:** 2\
**Last updated:** [October 5, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/friendly-from-address/176747 "2009-10-05T21:05:45Z")

</div>

What is the right way to set the “friendly” part of the from address in an email? This works: from "removed\_email\_address@domain.invalid" But this does not… (No error message, the email just never arrives): f…

---

## [Calculating business day](https://www.ruby-forum.com/t/calculating-business-day/175737)

<div class="topic-metadata">

**Author:** [@penelope](https://www.ruby-forum.com/u/penelope)\
**Replies:** 7\
**Last updated:** [October 5, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/calculating-business-day/175737 "2009-10-05T19:05:44Z")

</div>

I want calculate the number of business day for the current month, but I don’t know how I skip the holidays and weekends. Could anyone help me with this? Thanks

---

## [Can't access http://localhost:3000](https://www.ruby-forum.com/t/cant-access-http-localhost-3000/176622)

<div class="topic-metadata">

**Author:** [@Roger\_jg](https://www.ruby-forum.com/u/Roger_jg)\
**Replies:** 5\
**Last updated:** [October 5, 2009, 6:27pm UTC](https://www.ruby-forum.com/t/cant-access-http-localhost-3000/176622 "2009-10-05T18:27:05Z")

</div>

Hello, Pure newbie question. After installeing Ruby, Rail and al the gems I am following the tutorial here I start a server with Mongrel and it seems to be working, but when I try to acces http://localhost:3000 i g…

---

## [Atom Feed](https://www.ruby-forum.com/t/atom-feed/176677)

<div class="topic-metadata">

**Author:** [@djames](https://www.ruby-forum.com/u/djames)\
**Replies:** 2\
**Last updated:** [October 5, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/atom-feed/176677 "2009-10-05T17:56:39Z")

</div>

I am trying to create an atom feed by following closely (but not exactly) the example provided in DHH blog screencast. I am getting the error: No route matches “/blog/atom\_feed.atom” with {:method=\>:get} I was expec…

---

## [Auto print?](https://www.ruby-forum.com/t/auto-print/176701)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 1\
**Last updated:** [October 5, 2009, 5:42pm UTC](https://www.ruby-forum.com/t/auto-print/176701 "2009-10-05T17:42:00Z")

</div>

Hi All, I’m working on online food ordering system, as the order is created an email is sent to the restaurant regarding the order, Is there any way to inform the restaurant using auto printout or a fax. Thanks in ad…

---

## [Text\_field\_with\_auto\_complete question](https://www.ruby-forum.com/t/text-field-with-auto-complete-question/176449)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [October 5, 2009, 5:06pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-question/176449 "2009-10-05T17:06:17Z")

</div>

This code below will display “Search Friends” in the text box IF {:select =\> ‘friend’} is not there and the ajax call also does not work. Any ideas how to get the text and to disaply and have the ajax call work? \<%…

---

## [Migrations running errantly](https://www.ruby-forum.com/t/migrations-running-errantly/176735)

<div class="topic-metadata">

**Author:** [@terrii](https://www.ruby-forum.com/u/terrii)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/migrations-running-errantly/176735 "2009-10-05T16:31:11Z")

</div>

What would make migrations run unexpectedly? We ran cap deploy:migrations and did not expect any migrations to run since none had been changed. The schema\_migrations table was there and contained the appropriate va…

---

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

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 7\
**Last updated:** [October 5, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/rescue/176681 "2009-10-05T16:25:18Z")

</div>

I am having problems with rescue actions. Currently using ‘development’ and it is sending e-mails no problem but it still drives me to the error page… My specific error at this point is ActionController::InvalidAuthe…

---

## [Seeking Ruby on Rails Tutorial/Screencaster](https://www.ruby-forum.com/t/seeking-ruby-on-rails-tutorial-screencaster/176623)

<div class="topic-metadata">

**Author:** [@googlefandeveloper](https://www.ruby-forum.com/u/googlefandeveloper)\
**Replies:** 2\
**Last updated:** [October 5, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/seeking-ruby-on-rails-tutorial-screencaster/176623 "2009-10-05T16:20:17Z")

</div>

Our media company will soon be launching a new information website, for which we are seeking an experienced Ruby on Rails tutorial writer/ screencaster. This contributor would be asked to submit as many as one exclusi…

---

## [Problem with Rails and Oracle sequences](https://www.ruby-forum.com/t/problem-with-rails-and-oracle-sequences/176728)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 4\
**Last updated:** [October 5, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/problem-with-rails-and-oracle-sequences/176728 "2009-10-05T15:55:22Z")

</div>

Hi all, Suppose my sequence current value is ‘1’ and I save a new record to the DB.After I call the save method,the attribute which uses the sequence has the value ‘2’,but in the database it is ‘3’.IÂ´m mapping the se…

---

## [Implementing a user activity log with STI. (?)](https://www.ruby-forum.com/t/implementing-a-user-activity-log-with-sti/173675)

<div class="topic-metadata">

**Author:** [@robb](https://www.ruby-forum.com/u/robb)\
**Replies:** 4\
**Last updated:** [October 5, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/implementing-a-user-activity-log-with-sti/173675 "2009-10-05T15:51:20Z")

</div>

Can anyone tell me if I’m on the right track? I think this isn’t quite right: I want to implement an activity log for users. It’ll show them a list of the objects they’ve viewed. I have, of course, many types of o…

---

## [Editable datagrid using wice\_grid and in\_place\_editor?](https://www.ruby-forum.com/t/editable-datagrid-using-wice-grid-and-in-place-editor/176730)

<div class="topic-metadata">

**Author:** [@C\_K\_Kashyap](https://www.ruby-forum.com/u/C_K_Kashyap)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/editable-datagrid-using-wice-grid-and-in-place-editor/176730 "2009-10-05T14:56:52Z")

</div>

Hi All, I need to create an editable data grid. What would be a good way to do it? I did not explore wice\_grid much - but it does not seem to allow editing. I was wondering if I could use a combination of in\_place\_e…

---

## [Multiple views of the same model](https://www.ruby-forum.com/t/multiple-views-of-the-same-model/176705)

<div class="topic-metadata">

**Author:** [@Jonas\_L](https://www.ruby-forum.com/u/Jonas_L)\
**Replies:** 4\
**Last updated:** [October 5, 2009, 2:43pm UTC](https://www.ruby-forum.com/t/multiple-views-of-the-same-model/176705 "2009-10-05T14:43:41Z")

</div>

Hi, How can I implement two different views on the same model? My model has 30 attributes. The First view should display 1-12 and the second view the rest of them. In my case I am dealing with two medical anamneses w…

---

## [Friendly\_id and Rake problem](https://www.ruby-forum.com/t/friendly-id-and-rake-problem/176699)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 4\
**Last updated:** [October 5, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/friendly-id-and-rake-problem/176699 "2009-10-05T14:38:47Z")

</div>

Hello there, The plugin friendly\_id (GitHub - norman/friendly\_id: FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-fri…

---

## [Mysql + Snow Leopard + Rails](https://www.ruby-forum.com/t/mysql-snow-leopard-rails/176663)

<div class="topic-metadata">

**Author:** [@tspore](https://www.ruby-forum.com/u/tspore)\
**Replies:** 4\
**Last updated:** [October 5, 2009, 2:00pm UTC](https://www.ruby-forum.com/t/mysql-snow-leopard-rails/176663 "2009-10-05T14:00:05Z")

</div>

I am very interested to start playing with rails, but I have now spent a whole day trying to get it all working. Which is quite disheartening. My latest issues is from within ruby when I try to connect to the DB it sa…

---

## [Question about the redirection of rails](https://www.ruby-forum.com/t/question-about-the-redirection-of-rails/176717)

<div class="topic-metadata">

**Author:** [@masa](https://www.ruby-forum.com/u/masa)\
**Replies:** 0\
**Last updated:** [October 5, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/question-about-the-redirection-of-rails/176717 "2009-10-05T12:58:10Z")

</div>

Hi Everyone I have a guestion about the redirection of rails. Im using Rails 2.2.2 Is the value of url acquired from the host? HOST : 10.36.225.102:3333 a href=“http://10.36.225.102:3333” GET http://10.36.225.102:3…

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

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