# Rails

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

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

---

## [Find\_with\_ferret doesn't return a SearchResults objetc](https://www.ruby-forum.com/t/find-with-ferret-doesnt-return-a-searchresults-objetc/191756)

<div class="topic-metadata">

**Author:** [@mamadoutoure](https://www.ruby-forum.com/u/mamadoutoure)\
**Replies:** 1\
**Last updated:** [July 18, 2010, 12:50am UTC](https://www.ruby-forum.com/t/find-with-ferret-doesnt-return-a-searchresults-objetc/191756 "2010-07-18T00:50:57Z")

</div>

Hi folks, I have the following statement in my ruby class @users = User.find\_with\_ferret(query, { :page =\> params\[ :page \], :per\_page =\> 10 }), But once I run the program, @users.class gives me an Array instead of …

---

## [Create\_table](https://www.ruby-forum.com/t/create-table/191613)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 4\
**Last updated:** [July 17, 2010, 6:47pm UTC](https://www.ruby-forum.com/t/create-table/191613 "2010-07-17T18:47:05Z")

</div>

“The Rails Way” book mentions the following regarding the create\_table method: Why do we specify identifiers with symbols instead ofstrings? Both will work, but symbols require one less keystroke. What is meant by: “…

---

## [How do you deploy RoR? Newb alert!](https://www.ruby-forum.com/t/how-do-you-deploy-ror-newb-alert/190797)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 41\
**Last updated:** [July 17, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/how-do-you-deploy-ror-newb-alert/190797 "2010-07-17T18:21:49Z")

</div>

Hi there, I’m a newb when it comes to RoR but I have some questions about deployment that has eluded me since I heard about RoR 2+ years ago. I was hoping someone could shed some light for me on this subject. I’ve re…

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/191719)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 10\
**Last updated:** [July 17, 2010, 5:36pm UTC](https://www.ruby-forum.com/t/nomethoderror/191719 "2010-07-17T17:36:35Z")

</div>

I’m trying to create an “Inventory” application that has two models: 1- item 2- itemdetails I have made a “relationship” between those two models, such that: item has\_many itemdetails Once I try to create an item or…

---

## [Integrating web applications](https://www.ruby-forum.com/t/integrating-web-applications/191751)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 0\
**Last updated:** [July 17, 2010, 5:18pm UTC](https://www.ruby-forum.com/t/integrating-web-applications/191751 "2010-07-17T17:18:52Z")

</div>

What you guys think the best approach to integrate web applications? Lets assume we want to build a ecommerce, so we need something to generate the pages and a billing system, so we could use radiant and spree, i know…

---

## [Rails-3.0.0.beta3 install error on ri 'lib' ENOENT](https://www.ruby-forum.com/t/rails-3-0-0-beta3-install-error-on-ri-lib-enoent/187473)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 3\
**Last updated:** [July 17, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/rails-3-0-0-beta3-install-error-on-ri-lib-enoent/187473 "2010-07-17T17:08:11Z")

</div>

Hi, I was getting an odd error installing rails-3.0.0.beta3 on a fresh Ubuntu 10.04 install. The same exact error was occurring on my Ubuntu 9.10 install, so I’m sure it isn’t something specific to the Ubuntu versio…

---

## [Proc with block containing boolean constant](https://www.ruby-forum.com/t/proc-with-block-containing-boolean-constant/191750)

<div class="topic-metadata">

**Author:** [@god\_gav](https://www.ruby-forum.com/u/god_gav)\
**Replies:** 0\
**Last updated:** [July 17, 2010, 4:12pm UTC](https://www.ruby-forum.com/t/proc-with-block-containing-boolean-constant/191750 "2010-07-17T16:12:38Z")

</div>

Hi, I encountered with strange behavior in Rails 2.2.2 using Proc with boolean constant in block. When I’m evaluating expression Proc.new{ false }.call from rails console it returns true, but in application the same e…

---

## [Not able to find to\_yaml definition](https://www.ruby-forum.com/t/not-able-to-find-to-yaml-definition/191733)

<div class="topic-metadata">

**Author:** [@Nadal](https://www.ruby-forum.com/u/Nadal)\
**Replies:** 1\
**Last updated:** [July 17, 2010, 2:30pm UTC](https://www.ruby-forum.com/t/not-able-to-find-to-yaml-definition/191733 "2010-07-17T14:30:02Z")

</div>

I am looking at rails edge source code. I am able to do puts User.find.to\_yaml However I am not able to find piece of code where ‘def to\_yaml’ is. How this to\_yaml serialization is working? can fully understand how…

---

## [Question regarding controller actions (And a little bit of REST)](https://www.ruby-forum.com/t/question-regarding-controller-actions-and-a-little-bit-of-rest/191745)

<div class="topic-metadata">

**Author:** [@mffreire](https://www.ruby-forum.com/u/mffreire)\
**Replies:** 3\
**Last updated:** [July 17, 2010, 2:16pm UTC](https://www.ruby-forum.com/t/question-regarding-controller-actions-and-a-little-bit-of-rest/191745 "2010-07-17T14:16:34Z")

</div>

Hi Guys, I am developing a blog system with Rails and I have a question about the following matter: My client wants me to create an approve and disapprove action for the comments. So, I did create two actions in th…

---

## [SOAP web service](https://www.ruby-forum.com/t/soap-web-service/191152)

<div class="topic-metadata">

**Author:** [@codefusurfer](https://www.ruby-forum.com/u/codefusurfer)\
**Replies:** 10\
**Last updated:** [July 17, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/soap-web-service/191152 "2010-07-17T12:25:57Z")

</div>

I am looking for a way to host a SOAP Webserver that serves the data as SOAP document/literal. I know actionwebservice support SOAP RPC/ encoded mode but I need document/literal. Anyone knows how to do this?

---

## [\[JOB\] Ruby on Rails Developer in Seattle](https://www.ruby-forum.com/t/job-ruby-on-rails-developer-in-seattle/191742)

<div class="topic-metadata">

**Author:** [@shatridge](https://www.ruby-forum.com/u/shatridge)\
**Replies:** 0\
**Last updated:** [July 17, 2010, 11:27am UTC](https://www.ruby-forum.com/t/job-ruby-on-rails-developer-in-seattle/191742 "2010-07-17T11:27:26Z")

</div>

Ruby on Rails Developer Perm Position - Seattle, WA About the Job: We are looking for candidates for a permanent position with a client located in Seattle. This is a full-time direct-hire with a startup company off…

---

## [Stopping Nginx](https://www.ruby-forum.com/t/stopping-nginx/191688)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 5\
**Last updated:** [July 17, 2010, 2:02am UTC](https://www.ruby-forum.com/t/stopping-nginx/191688 "2010-07-17T02:02:32Z")

</div>

I’m trying to get rails running with Nginx. I have Nginx installed using Macports and I can get it running. But I can’t stop it. This will not work: alias nginx-stop=“sudo launchctl unload /Library/LaunchDaemons/org.…

---

## [Hash or not a Hash?!](https://www.ruby-forum.com/t/hash-or-not-a-hash/191699)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 7\
**Last updated:** [July 16, 2010, 9:03pm UTC](https://www.ruby-forum.com/t/hash-or-not-a-hash/191699 "2010-07-16T21:03:37Z")

</div>

In Rails, we can see the following for example (They are separate here): :x=\>“new\_x” :y=\>{:x=\>X.new} From Ruby, I know that a hash has to be between { }, and the key is on the left of =\> and the value to the right. B…

---

## [Can partials be accessed from two views?](https://www.ruby-forum.com/t/can-partials-be-accessed-from-two-views/191650)

<div class="topic-metadata">

**Author:** [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Replies:** 2\
**Last updated:** [July 16, 2010, 8:04pm UTC](https://www.ruby-forum.com/t/can-partials-be-accessed-from-two-views/191650 "2010-07-16T20:04:24Z")

</div>

For me to keep my application DRY i need to be able to have partials that can be accessed from two views. How is would I go about doing this? Many thanks, jakx12

---

## [Redirect\_to doesn't work for create action](https://www.ruby-forum.com/t/redirect-to-doesnt-work-for-create-action/191725)

<div class="topic-metadata">

**Author:** [@ektayogesh](https://www.ruby-forum.com/u/ektayogesh)\
**Replies:** 0\
**Last updated:** [July 16, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/redirect-to-doesnt-work-for-create-action/191725 "2010-07-16T19:48:45Z")

</div>

Hi, I am trying to use redirect\_to in one of my action in a controller class I want it to redirect to another controller create action which is a HTTP POST method, I tried different option but none of them seems to w…

---

## [Effects of a humongous Controller on performance?](https://www.ruby-forum.com/t/effects-of-a-humongous-controller-on-performance/191715)

<div class="topic-metadata">

**Author:** [@gaudimila](https://www.ruby-forum.com/u/gaudimila)\
**Replies:** 2\
**Last updated:** [July 16, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/effects-of-a-humongous-controller-on-performance/191715 "2010-07-16T17:51:30Z")

</div>

I have a client that has a Rails app that was built by someone that didn’t know what they were doing, at least from the standpoint of MVC, and so rather than portioning out their business logic in different controller…

---

## [Menu structure with multiple parents?](https://www.ruby-forum.com/t/menu-structure-with-multiple-parents/191585)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 3\
**Last updated:** [July 16, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/menu-structure-with-multiple-parents/191585 "2010-07-16T17:19:13Z")

</div>

Hello, my current menu is based on acts\_as\_tree which worked just fine so far but now I need some menu items being shown under more than one parent. Example: menu1 -submenu1 -submenu2 menu2 -submenu1 -submenu3 …

---

## [Group By - but showing all the groups](https://www.ruby-forum.com/t/group-by-but-showing-all-the-groups/191610)

<div class="topic-metadata">

**Author:** [@Philrup](https://www.ruby-forum.com/u/Philrup)\
**Replies:** 4\
**Last updated:** [July 16, 2010, 4:21pm UTC](https://www.ruby-forum.com/t/group-by-but-showing-all-the-groups/191610 "2010-07-16T16:21:20Z")

</div>

I know this must be easy but I can not see it. I have a table with types of material and a second table of the materials. So; MaterialType has\_many :materials and Material belongs\_to :material\_type I want to dis…

---

## [PDFKIT is not working on Windows XP](https://www.ruby-forum.com/t/pdfkit-is-not-working-on-windows-xp/191709)

<div class="topic-metadata">

**Author:** [@railslist](https://www.ruby-forum.com/u/railslist)\
**Replies:** 0\
**Last updated:** [July 16, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/pdfkit-is-not-working-on-windows-xp/191709 "2010-07-16T16:00:22Z")

</div>

Hi!, I am using PDFKIT gem on winows XP and it’s not working. Here is the error I get: “No such file or directory - which wkhtmltopdf-proxy” The same project works on my MAC. I have also installed “wkhtmltopdf” on w…

---

## [Rails3beta4 and exception notification](https://www.ruby-forum.com/t/rails3beta4-and-exception-notification/191700)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 2\
**Last updated:** [July 16, 2010, 3:20pm UTC](https://www.ruby-forum.com/t/rails3beta4-and-exception-notification/191700 "2010-07-16T15:20:52Z")

</div>

Hi there Has anyone got rails3beta4 and exception notification to work? I can’t :frowning: Found Lawrences stuff here https://rails.lighthouseapp.com/projects/8995/tickets/87-exception-notification-cannot-be-used-wit…

---

## [Rails 3 bug: undefined method \`\<=\>' for class \`ActiveSupport::Multibyte::Chars'](https://www.ruby-forum.com/t/rails-3-bug-undefined-method-for-class-activesupport-chars/191695)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 1\
**Last updated:** [July 16, 2010, 2:54pm UTC](https://www.ruby-forum.com/t/rails-3-bug-undefined-method-for-class-activesupport-chars/191695 "2010-07-16T14:54:40Z")

</div>

I’m getting the following bug when I try to run rake db:migrate in Rails 3 beta 4: $ rake db:migrate --trace (in C:/Users/Adam/Documents/Aptana Workspace/QuestionBank) default formats are encoded in ISO-8859-1 \*\* In…

---

## [How to do url rewriting](https://www.ruby-forum.com/t/how-to-do-url-rewriting/191697)

<div class="topic-metadata">

**Author:** [@amitjain](https://www.ruby-forum.com/u/amitjain)\
**Replies:** 4\
**Last updated:** [July 16, 2010, 2:22pm UTC](https://www.ruby-forum.com/t/how-to-do-url-rewriting/191697 "2010-07-16T14:22:27Z")

</div>

Hello, I am Amit. i am new to Rails. Please forgive me if ask any stupid questions. I have gone through this article. I am also suffering with the same problem. my website URL like this: http://127.0.0.0:3000/users/…

---

## [Named\_scope multiple conditions](https://www.ruby-forum.com/t/named-scope-multiple-conditions/191696)

<div class="topic-metadata">

**Author:** [@Jermaine](https://www.ruby-forum.com/u/Jermaine)\
**Replies:** 5\
**Last updated:** [July 16, 2010, 2:17pm UTC](https://www.ruby-forum.com/t/named-scope-multiple-conditions/191696 "2010-07-16T14:17:46Z")

</div>

Hi everyone, I have a working named\_scope here, however it’s too cluttered. Anyone got a better (more efficient) and concise alternative? Thanks. ============================================ named\_scope :filter, lam…

---

## [About active\_record timestamps](https://www.ruby-forum.com/t/about-active-record-timestamps/191616)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 7\
**Last updated:** [July 16, 2010, 10:36am UTC](https://www.ruby-forum.com/t/about-active-record-timestamps/191616 "2010-07-16T10:36:10Z")

</div>

hi I want to build a filter that gets records from database based on selected date.such as Product.find(:all, :conditions =\> \[“created\_at = ?”,selected\_date\]) 1 If selected\_date is a Date object while created\_at is…

---

## [I do not want to change my site url through out site](https://www.ruby-forum.com/t/i-do-not-want-to-change-my-site-url-through-out-site/191689)

<div class="topic-metadata">

**Author:** [@amitjain](https://www.ruby-forum.com/u/amitjain)\
**Replies:** 0\
**Last updated:** [July 16, 2010, 9:21am UTC](https://www.ruby-forum.com/t/i-do-not-want-to-change-my-site-url-through-out-site/191689 "2010-07-16T09:21:37Z")

</div>

Hi, I am new in ROR. my current url is like: http://rails-forum.com/profile.php?action=change\_pass&id=41665&key=DIa6MR9n but i want to show this url like: http://rails-forum.com/ through out site even we click any…

---

## [Zip code validation w/o using zip code database or javascrip](https://www.ruby-forum.com/t/zip-code-validation-w-o-using-zip-code-database-or-javascrip/191492)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 5\
**Last updated:** [July 16, 2010, 9:19am UTC](https://www.ruby-forum.com/t/zip-code-validation-w-o-using-zip-code-database-or-javascrip/191492 "2010-07-16T09:19:25Z")

</div>

I want to validate that zip code entered by user is valid or not. for example user entered 009876654 and it is not valid then an error message should be given. I know i can do it using javascript regulr expression or …

---

## [Link\_to\_function inside of another link\_to\_function?](https://www.ruby-forum.com/t/link-to-function-inside-of-another-link-to-function/191681)

<div class="topic-metadata">

**Author:** [@bjd1121](https://www.ruby-forum.com/u/bjd1121)\
**Replies:** 0\
**Last updated:** [July 16, 2010, 4:40am UTC](https://www.ruby-forum.com/t/link-to-function-inside-of-another-link-to-function/191681 "2010-07-16T04:40:39Z")

</div>

Hi, Is something like this possible? \<% link\_to\_function ‘Name’,stuff do |page| page.replace\_html ‘id’, :text =\> link\_to\_function ‘Name2’,stuff2 do |page2| page2.replace\_html etc end end %\> I’m using the first li…

---

## [Looking for a Code review tool for ruby(checkstyle)](https://www.ruby-forum.com/t/looking-for-a-code-review-tool-for-ruby-checkstyle/126297)

<div class="topic-metadata">

**Author:** [@Jet](https://www.ruby-forum.com/u/Jet)\
**Replies:** 3\
**Last updated:** [July 16, 2010, 3:07am UTC](https://www.ruby-forum.com/t/looking-for-a-code-review-tool-for-ruby-checkstyle/126297 "2010-07-16T03:07:27Z")

</div>

I have been looking around for something like checkstyle (Java code review tool) for ruby. http://checkstyle.sourceforge.net/availablechecks.html Has anyone here ever come across a similar dilema wherein we need to e…

---

## [Opposite of initializers in rails (2.x)?](https://www.ruby-forum.com/t/opposite-of-initializers-in-rails-2-x/191664)

<div class="topic-metadata">

**Author:** [@rmk](https://www.ruby-forum.com/u/rmk)\
**Replies:** 0\
**Last updated:** [July 15, 2010, 11:37pm UTC](https://www.ruby-forum.com/t/opposite-of-initializers-in-rails-2-x/191664 "2010-07-15T23:37:52Z")

</div>

Hi list, In rails, if I place files in config/initializers/, they will be executed when the rails app is started. I was wondering if there is a ‘deinitializer’? I need to shut down a daemon that I have placed in conf…

---

## [One Array - 3 Columns of Equal Length](https://www.ruby-forum.com/t/one-array-3-columns-of-equal-length/189309)

<div class="topic-metadata">

**Author:** [@mercurius](https://www.ruby-forum.com/u/mercurius)\
**Replies:** 16\
**Last updated:** [July 15, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/one-array-3-columns-of-equal-length/189309 "2010-07-15T23:17:12Z")

</div>

I want to split a single array into 3 columns of equal (or as near to as possible) length. What would you advise I do?

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

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