# Rails

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

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

---

## [Acts\_as\_solr throwing an Exception](https://www.ruby-forum.com/t/acts-as-solr-throwing-an-exception/185212)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 7:32am UTC](https://www.ruby-forum.com/t/acts-as-solr-throwing-an-exception/185212 "2010-03-16T07:32:41Z")

</div>

Hi, when i start the rake task for solr like rake solr:start i got the following error: \*\* Invoke solr:start (first\_time) \*\* Execute solr:start Exception in thread “main” java.lang.NoClassDefFoundError: copy/vend…

---

## [Undefined method when creating a has\_many relationship](https://www.ruby-forum.com/t/undefined-method-when-creating-a-has-many-relationship/185149)

<div class="topic-metadata">

**Author:** [@markb](https://www.ruby-forum.com/u/markb)\
**Replies:** 3\
**Last updated:** [March 16, 2010, 6:01am UTC](https://www.ruby-forum.com/t/undefined-method-when-creating-a-has-many-relationship/185149 "2010-03-16T06:01:17Z")

</div>

My first attempt at working with a new has\_many relationship is throwing an error in the view when I try to create a new ‘rcost’ instance linked to a ‘resource’ (each resource can have multiple costs): “undefined met…

---

## [Dynamic Setters](https://www.ruby-forum.com/t/dynamic-setters/185208)

<div class="topic-metadata">

**Author:** [@PsiPro](https://www.ruby-forum.com/u/PsiPro)\
**Replies:** 1\
**Last updated:** [March 16, 2010, 5:43am UTC](https://www.ruby-forum.com/t/dynamic-setters/185208 "2010-03-16T05:43:09Z")

</div>

Hello all, I’m tinkering around with method\_missing, and have run into a problem. I’m trying to create virtual columns so plugins like formtastic work properly with this model. I plan on wrapping all attributes relat…

---

## [XML import Question](https://www.ruby-forum.com/t/xml-import-question/185148)

<div class="topic-metadata">

**Author:** [@burguer](https://www.ruby-forum.com/u/burguer)\
**Replies:** 4\
**Last updated:** [March 16, 2010, 3:43am UTC](https://www.ruby-forum.com/t/xml-import-question/185148 "2010-03-16T03:43:12Z")

</div>

hi guys can somebody help to find some tutorial or link to find the way to import an external XML file to rails with some nodes and child-nodes. Thanks

---

## [Problem indexing add Simple Table Inherance](https://www.ruby-forum.com/t/problem-indexing-add-simple-table-inherance/184977)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 3\
**Last updated:** [March 16, 2010, 2:18am UTC](https://www.ruby-forum.com/t/problem-indexing-add-simple-table-inherance/184977 "2010-03-16T02:18:21Z")

</div>

I have a simple table inherance, with an upper class GeneralElement. A class that inherits is Activity: class Activity \< GeneralElement … end The GeneralElement table is very big (about 2.000.000 rows!). Other clas…

---

## [Jquery/jqmodal layout question](https://www.ruby-forum.com/t/jquery-jqmodal-layout-question/185206)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 0\
**Last updated:** [March 16, 2010, 12:54am UTC](https://www.ruby-forum.com/t/jquery-jqmodal-layout-question/185206 "2010-03-16T00:54:05Z")

</div>

I trying jqmodal for popup dialogs and running into a problem. jqmodal lets you specify a div containing content for the popup dialog and renders it for you. The dialog is hidden initially and then you use a show cmd …

---

## [More than one table per model](https://www.ruby-forum.com/t/more-than-one-table-per-model/185183)

<div class="topic-metadata">

**Author:** [@frank\_programmer](https://www.ruby-forum.com/u/frank_programmer)\
**Replies:** 10\
**Last updated:** [March 15, 2010, 11:25pm UTC](https://www.ruby-forum.com/t/more-than-one-table-per-model/185183 "2010-03-15T23:25:43Z")

</div>

Hi everyone, I want to create a model that uses two tables for its data. Is that possible or just a bad idea? I don’t want to do the has\_one because I want to avoid the extra dereferencing. For example Model A a…

---

## [\[JOBS\] Ruby Developer position in DC](https://www.ruby-forum.com/t/jobs-ruby-developer-position-in-dc/185200)

<div class="topic-metadata">

**Author:** [@Darren\_Fernandes](https://www.ruby-forum.com/u/Darren_Fernandes)\
**Replies:** 0\
**Last updated:** [March 15, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/jobs-ruby-developer-position-in-dc/185200 "2010-03-15T23:05:49Z")

</div>

This position is with one of the nation’s premier workplaces, located in Washington, DC. We are looking for a very sharp, cross functional developer with strong Ruby and front end development experience. You will be w…

---

## [JS not recognized in link\_to\_remote respond\_to?](https://www.ruby-forum.com/t/js-not-recognized-in-link-to-remote-respond-to/185195)

<div class="topic-metadata">

**Author:** [@Sav](https://www.ruby-forum.com/u/Sav)\
**Replies:** 4\
**Last updated:** [March 15, 2010, 10:59pm UTC](https://www.ruby-forum.com/t/js-not-recognized-in-link-to-remote-respond-to/185195 "2010-03-15T22:59:58Z")

</div>

In my view I have this test… \<%= link\_to\_remote(‘AJAX Alert’, :url =\> ‘/sandbox/submit’, :success =\> ‘alert(request.responseText)’) %\> In my controller, this works and outputs “AJAX Response”… def submit render :lay…

---

## [JS not recognized in link\_to\_remote respond\_to?](https://www.ruby-forum.com/t/js-not-recognized-in-link-to-remote-respond-to/185196)

<div class="topic-metadata">

**Author:** [@Sav](https://www.ruby-forum.com/u/Sav)\
**Replies:** 0\
**Last updated:** [March 15, 2010, 9:47pm UTC](https://www.ruby-forum.com/t/js-not-recognized-in-link-to-remote-respond-to/185196 "2010-03-15T21:47:59Z")

</div>

In my view I have this test… \<%= link\_to\_remote(‘AJAX Alert’, :url =\> ‘/sandbox/submit’, :success =\> ‘alert(request.responseText)’) %\> In my controller, this works and alerts “AJAX Response”… def submit render :layo…

---

## [Problem with Getting Started with Rails](https://www.ruby-forum.com/t/problem-with-getting-started-with-rails/185185)

<div class="topic-metadata">

**Author:** [@neilbain](https://www.ruby-forum.com/u/neilbain)\
**Replies:** 1\
**Last updated:** [March 15, 2010, 9:43pm UTC](https://www.ruby-forum.com/t/problem-with-getting-started-with-rails/185185 "2010-03-15T21:43:09Z")

</div>

I am working through the official Getting Started with Rails tutorial I am stuck on section 8.4 Generating a Controller. It suggests there that this definition: def index @post = Post.find(params\[:post\_id\]) @commen…

---

## [Linkedin plugin](https://www.ruby-forum.com/t/linkedin-plugin/185123)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 2\
**Last updated:** [March 15, 2010, 9:32pm UTC](https://www.ruby-forum.com/t/linkedin-plugin/185123 "2010-03-15T21:32:11Z")

</div>

Is there any plugins to connect to linkedin? If not, do you have a sample rails code to connect to linkedin? the goal I want to be able to update linkedin “share ideas, articles, quotes, and more” through my applicati…

---

## [Most popular IDEs for Ruby on Rails development](https://www.ruby-forum.com/t/most-popular-ides-for-ruby-on-rails-development/185040)

<div class="topic-metadata">

**Author:** [@Krum\_B](https://www.ruby-forum.com/u/Krum_B)\
**Replies:** 29\
**Last updated:** [March 15, 2010, 8:55pm UTC](https://www.ruby-forum.com/t/most-popular-ides-for-ruby-on-rails-development/185040 "2010-03-15T20:55:17Z")

</div>

Hi guys, Can you tell me which are the most popular and widely used IDEs for Ruby, and for Ruby on Rails development ? According to your impressions ? What do you use the most ? Are there different solutions for the …

---

## [Validates\_presence\_of :parent\_id stopping save](https://www.ruby-forum.com/t/validates-presence-of-parent-id-stopping-save/185094)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 7\
**Last updated:** [March 15, 2010, 7:53pm UTC](https://www.ruby-forum.com/t/validates-presence-of-parent-id-stopping-save/185094 "2010-03-15T19:53:13Z")

</div>

Hi. I’m using rails 2.3.4 and have this association between two of my models. Question has\_many :gradings Grading belongs\_to :question Grading has this validation: validates\_presence\_of :question\_id And this vali…

---

## [How to access multiple models in a single controller](https://www.ruby-forum.com/t/how-to-access-multiple-models-in-a-single-controller/184948)

<div class="topic-metadata">

**Author:** [@richardsugg](https://www.ruby-forum.com/u/richardsugg)\
**Replies:** 3\
**Last updated:** [March 15, 2010, 6:58pm UTC](https://www.ruby-forum.com/t/how-to-access-multiple-models-in-a-single-controller/184948 "2010-03-15T18:58:46Z")

</div>

I am creating a customer database. The navigation menu will have sections for supported customers, trial customers, unsupported customers, etc. The nav menu will appear on every page. I need to get the list of custo…

---

## [Figuring out the relationships between models](https://www.ruby-forum.com/t/figuring-out-the-relationships-between-models/185173)

<div class="topic-metadata">

**Author:** [@horsefly](https://www.ruby-forum.com/u/horsefly)\
**Replies:** 6\
**Last updated:** [March 15, 2010, 6:32pm UTC](https://www.ruby-forum.com/t/figuring-out-the-relationships-between-models/185173 "2010-03-15T18:32:50Z")

</div>

Hi Guys, I’m trying to come up with a model layout for a simple enough race prediction app but am a little stuck. Basically, the app will allow users to enter their predictions for a number of races (20 races in tota…

---

## [Paperclip problem](https://www.ruby-forum.com/t/paperclip-problem/183923)

<div class="topic-metadata">

**Author:** [@SSshaan](https://www.ruby-forum.com/u/SSshaan)\
**Replies:** 2\
**Last updated:** [March 15, 2010, 5:55pm UTC](https://www.ruby-forum.com/t/paperclip-problem/183923 "2010-03-15T17:55:32Z")

</div>

Hello, I have a slightly weird problem of paperclip challenging currently. I have installed image magick using “ImageMagick-6.5.4-10-Q16-windows- dll.exe”. The paperclip.rb initializer is also present in the initiali…

---

## [What association do I need?](https://www.ruby-forum.com/t/what-association-do-i-need/185180)

<div class="topic-metadata">

**Author:** [@things\_and\_stuff](https://www.ruby-forum.com/u/things_and_stuff)\
**Replies:** 0\
**Last updated:** [March 15, 2010, 5:55pm UTC](https://www.ruby-forum.com/t/what-association-do-i-need/185180 "2010-03-15T17:55:32Z")

</div>

Hi I’m a little confused as to what kind of association I need for this structure I have the models user, task and logs which all can have associations to some models which can be put under the loose heading of tests…

---

## [Configuring Paperclip on windows](https://www.ruby-forum.com/t/configuring-paperclip-on-windows/185181)

<div class="topic-metadata">

**Author:** [@Dmitriy\_Likhten](https://www.ruby-forum.com/u/Dmitriy_Likhten)\
**Replies:** 0\
**Last updated:** [March 15, 2010, 5:55pm UTC](https://www.ruby-forum.com/t/configuring-paperclip-on-windows/185181 "2010-03-15T17:55:32Z")

</div>

I’ve been banging my head against rails in the last couple of days trying to get paperclip to work in windows. I have ImageMagick working. I have RMagick working (and tested it on rails). I even configured paperclip t…

---

## [New plugin added to add help text i.e. tooltip in rails http://ow.ly/1l7nF #plugin #rails #tooltip](https://www.ruby-forum.com/t/new-plugin-added-to-add-help-text-i-e-tooltip-in-rails-http-ow-ly-1l7nf-plugin-rails-tooltip/185178)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 0\
**Last updated:** [March 15, 2010, 4:02pm UTC](https://www.ruby-forum.com/t/new-plugin-added-to-add-help-text-i-e-tooltip-in-rails-http-ow-ly-1l7nf-plugin-rails-tooltip/185178 "2010-03-15T16:02:31Z")

</div>

Hello All, I just added a new rails\_tooltip plugin on github that will help to add help tooltip to html nodes ( table columns, text\_fields, labels, etc. ) GitHub - sandipransing/rails\_tooltip: Allows to add hover hel…

---

## [Combine two has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/combine-two-has-and-belongs-to-many/185159)

<div class="topic-metadata">

**Author:** [@eugenio](https://www.ruby-forum.com/u/eugenio)\
**Replies:** 4\
**Last updated:** [March 15, 2010, 3:58pm UTC](https://www.ruby-forum.com/t/combine-two-has-and-belongs-to-many/185159 "2010-03-15T15:58:25Z")

</div>

a “User” has\_and\_belongs\_to\_many “Roles” a “Role” has\_and\_belongs\_to\_many “Rights” how can i relate Users and Rights? i would like something like @user.rights i know it can be done via SQL, but i don’t know if there …

---

## [How to hide an object?](https://www.ruby-forum.com/t/how-to-hide-an-object/184857)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 15\
**Last updated:** [March 15, 2010, 3:16pm UTC](https://www.ruby-forum.com/t/how-to-hide-an-object/184857 "2010-03-15T15:16:31Z")

</div>

Hi everyone: I want to hide an object before it load. I see in the API the function page.hide but I donÂ´t have any idea about how to use it properly. Anyone can help me?? Is there any other form to do that?? THANKs

---

## [Need advise: searchlogic & pagination](https://www.ruby-forum.com/t/need-advise-searchlogic-pagination/185169)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [March 15, 2010, 2:55pm UTC](https://www.ruby-forum.com/t/need-advise-searchlogic-pagination/185169 "2010-03-15T14:55:48Z")

</div>

hi, im using searchlogic, but cant get pagination running. it telling me: #i did install will\_paginate (plugin), searchlogic as gem undefined local variable or method \`per\_page\_select’ for 29: 30: \<%= render @jobs %\>…

---

## [ROR Expert@INNOZON](https://www.ruby-forum.com/t/ror-expert-innozon/185168)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 15, 2010, 2:50pm UTC](https://www.ruby-forum.com/t/ror-expert-innozon/185168 "2010-03-15T14:50:31Z")

</div>

Company Profile Innozon is an agile web development company/consultancy and we excel at helping individuals and companies develop their ideas/products nurture them and transcend them into reality. Mission To bring …

---

## [How to determine if I am in development environment at runtime?](https://www.ruby-forum.com/t/how-to-determine-if-i-am-in-development-environment-at-runtime/185089)

<div class="topic-metadata">

**Author:** [@k-b](https://www.ruby-forum.com/u/k-b)\
**Replies:** 2\
**Last updated:** [March 15, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/how-to-determine-if-i-am-in-development-environment-at-runtime/185089 "2010-03-15T14:37:38Z")

</div>

Hi! I have something in my application which should be shown only if I am in development environment. Is there a command or a global variable to determine the current environment of the application? Greetings from G…

---

## [Dependency within form](https://www.ruby-forum.com/t/dependency-within-form/185109)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 1\
**Last updated:** [March 15, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/dependency-within-form/185109 "2010-03-15T14:29:07Z")

</div>

Is there any way to have one drop-down collection dependent on another within a form? E.g. \<% form\_for @lab, :html =\> { :multipart =\> true } do |f| %\> \<%= f.collection\_select :lab\_desc\_id, LabDesc.find\_main, :id, :…

---

## [Error running mysql in ror](https://www.ruby-forum.com/t/error-running-mysql-in-ror/185147)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 9\
**Last updated:** [March 15, 2010, 1:01pm UTC](https://www.ruby-forum.com/t/error-running-mysql-in-ror/185147 "2010-03-15T13:01:38Z")

</div>

I just upgraded rails 2.3.5 and I got the error when I tried to run my application. Here few information: My OS Mac Tiger Rails version 2.3.5 Ruby version ruby 1.8.6 gem version 1.3.6 I run command: whic…

---

## [Find\_by](https://www.ruby-forum.com/t/find-by/185157)

<div class="topic-metadata">

**Author:** [@M\_I\_R](https://www.ruby-forum.com/u/M_I_R)\
**Replies:** 6\
**Last updated:** [March 15, 2010, 12:25pm UTC](https://www.ruby-forum.com/t/find-by/185157 "2010-03-15T12:25:56Z")

</div>

hi, I have to retrieve data from table with two conditions using a actully the following query select \* from abc where id=1 and type = ‘a’ how will i do if: find\_by\_id(id) \>\>\>\>\> how will i use for multiple condition…

---

## [Erb not fully rendering .js.erb files](https://www.ruby-forum.com/t/erb-not-fully-rendering-js-erb-files/185160)

<div class="topic-metadata">

**Author:** [@pkh](https://www.ruby-forum.com/u/pkh)\
**Replies:** 1\
**Last updated:** [March 15, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/erb-not-fully-rendering-js-erb-files/185160 "2010-03-15T12:09:32Z")

</div>

(Disclaimer: I’m new to rails, and running with rails --version: Rails 3.0.0.beta) The quick overview of what I’m trying to do: When the user hits a button that’s part of a table row, send an async POST to my server,…

---

## [Ruby gem WOWR and Ruby on Rails](https://www.ruby-forum.com/t/ruby-gem-wowr-and-ruby-on-rails/185153)

<div class="topic-metadata">

**Author:** [@spookypld](https://www.ruby-forum.com/u/spookypld)\
**Replies:** 0\
**Last updated:** [March 15, 2010, 11:37am UTC](https://www.ruby-forum.com/t/ruby-gem-wowr-and-ruby-on-rails/185153 "2010-03-15T11:37:37Z")

</div>

Hi. I want to make great WoW guild’s website. Long ago I’ve found great gem - wowr. This gem makes guild roster’s list and … I want it on this website. I’m not a programmer, I’m hobbist. So I thought it will be easie…

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

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