# Rails

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

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

---

## [Use your own Rails library](https://www.ruby-forum.com/t/use-your-own-rails-library/125254)

<div class="topic-metadata">

**Author:** [@snoop1990](https://www.ruby-forum.com/u/snoop1990)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 3:28pm UTC](https://www.ruby-forum.com/t/use-your-own-rails-library/125254 "2008-01-07T15:28:26Z")

</div>

Hey, I want to add my rails Library to my Application, so everybody who runs ruby on his or her web server, could install my Applications and configure the database and everything just works fine. So saved my rails w…

---

## [Model Validation with Multiple Models and Good MVC Design](https://www.ruby-forum.com/t/model-validation-with-multiple-models-and-good-mvc-design/125253)

<div class="topic-metadata">

**Author:** [@yinkyank](https://www.ruby-forum.com/u/yinkyank)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/model-validation-with-multiple-models-and-good-mvc-design/125253 "2008-01-07T15:27:06Z")

</div>

Model Validation With Multiple Controllers Involved I have a Posts controller and model and a Comments controller and model. Posts has a show method and a corresponding view that shows a post and its associated comme…

---

## [Eager loading with acts\_as\_tree](https://www.ruby-forum.com/t/eager-loading-with-acts-as-tree/125251)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/eager-loading-with-acts-as-tree/125251 "2008-01-07T14:56:33Z")

</div>

Hi all, I have a group, user and registration model all connected to each other. the group has a acts\_as\_tree property. I get the groups I want via top = Group.find\_by\_parent\_id(nil) groups = top.children() I need…

---

## [Respond to REST-request with image-file (no XML etc.)](https://www.ruby-forum.com/t/respond-to-rest-request-with-image-file-no-xml-etc/125166)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 3\
**Last updated:** [January 7, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/respond-to-rest-request-with-image-file-no-xml-etc/125166 "2008-01-07T14:36:13Z")

</div>

Hi! I’m using REST to serve content (images and SWFs) to a flash-file. Depending on the IP of the user, I would like to serve different content. To get the IP I use 'request.remote\_ip, followed by an if statement to …

---

## [Newbie Ajax Question](https://www.ruby-forum.com/t/newbie-ajax-question/125105)

<div class="topic-metadata">

**Author:** [@SySySy](https://www.ruby-forum.com/u/SySySy)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/newbie-ajax-question/125105 "2008-01-07T14:31:39Z")

</div>

Hello all, My apology in advance if this question has be asked many times already. I am new to Rails and can’t get the following simple Ajax work: \<% form\_remote\_tag :url =\> { :action =\> :add, :id =\> product } do %\> …

---

## [Problem with session](https://www.ruby-forum.com/t/problem-with-session/125248)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 2:21pm UTC](https://www.ruby-forum.com/t/problem-with-session/125248 "2008-01-07T14:21:37Z")

</div>

Hi, I have problem when i tried to logging logging successfull, but when tried to find out the current cuser details by session it always says nil code for loging:- @user = User.new(params\[:user\]) #session\[:user\_id…

---

## [Can we use date\_select as one observe\_field](https://www.ruby-forum.com/t/can-we-use-date-select-as-one-observe-field/125242)

<div class="topic-metadata">

**Author:** [@madhan](https://www.ruby-forum.com/u/madhan)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/can-we-use-date-select-as-one-observe-field/125242 "2008-01-07T13:55:43Z")

</div>

hi all, i want to find out the age of a person in the simple registration form without submitting the form. we can use link\_to\_remote or submit\_to\_remote(…), but i don’t want to use any link or button to link to the…

---

## [Pagination](https://www.ruby-forum.com/t/pagination/125241)

<div class="topic-metadata">

**Author:** [@katsuo](https://www.ruby-forum.com/u/katsuo)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/pagination/125241 "2008-01-07T13:52:16Z")

</div>

Hi, how can I properly add pagination to the following method? def list @titles = current\_user.titles.find(:all, order =\> “created\_date DESC”) end

---

## [:slide\_down](https://www.ruby-forum.com/t/slide-down/124378)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 4\
**Last updated:** [January 7, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/slide-down/124378 "2008-01-07T12:47:40Z")

</div>

So I have seen lots of posting on this very subject but not one has worked for me. My problem is that annoying flicker when you use slide\_down. Here is my code: :complete =\> visual\_effect(:blind\_down, “pickens”, :dur…

---

## [Attachment\_fu and ImageScience - problem with RubyInline gem](https://www.ruby-forum.com/t/attachment-fu-and-imagescience-problem-with-rubyinline-gem/125091)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 12:22pm UTC](https://www.ruby-forum.com/t/attachment-fu-and-imagescience-problem-with-rubyinline-gem/125091 "2008-01-07T12:22:28Z")

</div>

Hi, I am experiencing the following error when I configure attachment\_fu to use ImageScience. I have downloaded and compiled FreeImage, and installed the ImageScience (1.1.3) gem (which installs the RubyInline gem 3…

---

## [Hasmanythrough â€“ instant CRUD for Rails](https://www.ruby-forum.com/t/hasmanythrough-a-instant-crud-for-rails/125235)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/hasmanythrough-a-instant-crud-for-rails/125235 "2008-01-07T12:01:24Z")

</div>

I’m going by the example at: http://hasmanythrough.rubyforge.org/ And would like to add an interface along the lines of the “dream” project interface at http://users.drew.edu/bburd/RubyOnRails/ . However, when I ad…

---

## [How do you \*nix users test for IE quirks?](https://www.ruby-forum.com/t/how-do-you-nix-users-test-for-ie-quirks/124171)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 14\
**Last updated:** [January 7, 2008, 11:58am UTC](https://www.ruby-forum.com/t/how-do-you-nix-users-test-for-ie-quirks/124171 "2008-01-07T11:58:27Z")

</div>

I have recently switched over to a mac and am not sure how to test my latest project on IE6/7. I can start up parallels and test the live site, but that will be rather painful to make updates until everything is just…

---

## [Environment variables problem](https://www.ruby-forum.com/t/environment-variables-problem/124873)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 11:21am UTC](https://www.ruby-forum.com/t/environment-variables-problem/124873 "2008-01-07T11:21:26Z")

</div>

I am trying to do something that I thought would be trivial - pulling in a value from an environment variable. in my .bash\_profile I have: XML\_API=http://192.168.1.5:8080/abp3/webApiXmlRpcServlet It shows up in the o…

---

## [Migrate Excel (MS Access) to Rails](https://www.ruby-forum.com/t/migrate-excel-ms-access-to-rails/125001)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 3\
**Last updated:** [January 7, 2008, 10:49am UTC](https://www.ruby-forum.com/t/migrate-excel-ms-access-to-rails/125001 "2008-01-07T10:49:47Z")

</div>

Is there any form to migrate an Excel table(which becomes from Access)to Rails? I have the models with scaffolds, but I would like to have all the data with only a migration.

---

## [ActionController::InvalidAuthenticityToken](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/125210)

<div class="topic-metadata">

**Author:** [@harpoon45](https://www.ruby-forum.com/u/harpoon45)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 10:30am UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken/125210 "2008-01-07T10:30:30Z")

</div>

Ruby noob here. Just installed Rails 2.0, and am having trouble with updating DB tables, using the ApplicationController. The controller was generated using the command: rake db:migrate ruby script/generate controll…

---

## [Layout view helper](https://www.ruby-forum.com/t/layout-view-helper/125203)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 10:28am UTC](https://www.ruby-forum.com/t/layout-view-helper/125203 "2008-01-07T10:28:44Z")

</div>

Hi, I’m hoping to get some tips on how I could do this. I want a helper, called “layout”, which will take the contents of the current action (not including the layout set by controller) and put it inside of another l…

---

## [In\_place\_edit help (maybe with script.aculo.us)?](https://www.ruby-forum.com/t/in-place-edit-help-maybe-with-script-aculo-us/124878)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 10:05am UTC](https://www.ruby-forum.com/t/in-place-edit-help-maybe-with-script-aculo-us/124878 "2008-01-07T10:05:52Z")

</div>

Hello, I am using RoR and want to place a in\_place\_edit function that gets information from a database, edit and then saves it back to the database. Can anybody tell me how to do this? I found a lot of examples on th…

---

## [A sort question](https://www.ruby-forum.com/t/a-sort-question/125125)

<div class="topic-metadata">

**Author:** [@extempore](https://www.ruby-forum.com/u/extempore)\
**Replies:** 4\
**Last updated:** [January 7, 2008, 6:40am UTC](https://www.ruby-forum.com/t/a-sort-question/125125 "2008-01-07T06:40:52Z")

</div>

dear I have this list @@spelers = Speler.new(‘Jan Janssens’, ‘M’, 5, ‘SR’),Speler.new(‘Leen Leniksen’, ‘V’, 7), Speler.new(‘Piet Pieters’, ‘M’, 3), Speler.new(‘Els Elsenbocht’, ‘V’, 1, ‘J’), Speler.new(‘Karel Carlse…

---

## [AJAX, checkbox array](https://www.ruby-forum.com/t/ajax-checkbox-array/81825)

<div class="topic-metadata">

**Author:** [@F.BSten\_Kate](https://www.ruby-forum.com/u/F.BSten_Kate)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 6:36am UTC](https://www.ruby-forum.com/t/ajax-checkbox-array/81825 "2008-01-07T06:36:27Z")

</div>

Owkay i currently have a list of checkboxes called: option\_ids\[\], this will give me a nice array of the options selected. How ever… every time the user chnages their options an ajax request should be made, as follows…

---

## [Using Checkboxes and Ajax to Assign Categories](https://www.ruby-forum.com/t/using-checkboxes-and-ajax-to-assign-categories/125221)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 6:14am UTC](https://www.ruby-forum.com/t/using-checkboxes-and-ajax-to-assign-categories/125221 "2008-01-07T06:14:55Z")

</div>

Hi All, I have an ‘admin’ controller in which I have a ‘show\_product’ action. In the view of this action, I have a list of names of the categories w/ checkboxes to the left of each. What I am trying to do is to allow…

---

## [Is Ext js compatible with Rauils 2.0.2?](https://www.ruby-forum.com/t/is-ext-js-compatible-with-rauils-2-0-2/125218)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 5:52am UTC](https://www.ruby-forum.com/t/is-ext-js-compatible-with-rauils-2-0-2/125218 "2008-01-07T05:52:15Z")

</div>

Hi, I was using Rails 1.8.6 till last week… Now i updated my system dev environment to Rails 2.0.2, From then those Ext js modules are not working… Can some one help me out… Thanks. Ratnavel.

---

## [Error message after upgrading ruby](https://www.ruby-forum.com/t/error-message-after-upgrading-ruby/124871)

<div class="topic-metadata">

**Author:** [@extempore](https://www.ruby-forum.com/u/extempore)\
**Replies:** 7\
**Last updated:** [January 7, 2008, 5:31am UTC](https://www.ruby-forum.com/t/error-message-after-upgrading-ruby/124871 "2008-01-07T05:31:06Z")

</div>

hi first off all a happy new year to you all. I’m using netbeans 6 and ruby 2.02. at this point I get my index page in my view in this format index.html.erb and not like before index.rhtml when I enter localhost:30…

---

## [Where can I host a ROR site](https://www.ruby-forum.com/t/where-can-i-host-a-ror-site/124994)

<div class="topic-metadata">

**Author:** [@atulxxx](https://www.ruby-forum.com/u/atulxxx)\
**Replies:** 4\
**Last updated:** [January 7, 2008, 4:30am UTC](https://www.ruby-forum.com/t/where-can-i-host-a-ror-site/124994 "2008-01-07T04:30:52Z")

</div>

Hello, Can someone share some info about where the ROR sites can be hosted both as a free trial as well as on paid sites ? Any ISP in India ? Thanks atul

---

## [More Associations = Faster](https://www.ruby-forum.com/t/more-associations-faster/125212)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 0\
**Last updated:** [January 7, 2008, 4:17am UTC](https://www.ruby-forum.com/t/more-associations-faster/125212 "2008-01-07T04:17:25Z")

</div>

I have a Party record that I’m creating from Legacy data stored in another table in the database, accessed through a model created temporarily: class Legacy \< ActiveRecord::Base;end And from that I’m creating records…

---

## [Blank? and nil?](https://www.ruby-forum.com/t/blank-and-nil/125208)

<div class="topic-metadata">

**Author:** [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Replies:** 2\
**Last updated:** [January 7, 2008, 3:41am UTC](https://www.ruby-forum.com/t/blank-and-nil/125208 "2008-01-07T03:41:44Z")

</div>

What is the difference: @Table.blank? and @Table.nil? – Regards, Luiz Vitor Martinez C. \[Grabber\]. (11) 8187-8662 rubz.org - engineer student at maua.br

---

## [Rails check for a .js template instead of .rjs?](https://www.ruby-forum.com/t/rails-check-for-a-js-template-instead-of-rjs/125204)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [January 7, 2008, 3:14am UTC](https://www.ruby-forum.com/t/rails-check-for-a-js-template-instead-of-rjs/125204 "2008-01-07T03:14:08Z")

</div>

respond\_to do |format| format.html format.js { render :template =\> “login” } end Whenever I send an AJAX request to the action that has that code it says it cant find the template login.js. Why isnt it looking for l…

---

## [Can't seem to get Debain to understand "Production"](https://www.ruby-forum.com/t/cant-seem-to-get-debain-to-understand-production/121257)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 3\
**Last updated:** [January 7, 2008, 1:42am UTC](https://www.ruby-forum.com/t/cant-seem-to-get-debain-to-understand-production/121257 "2008-01-07T01:42:13Z")

</div>

Hey all, I’ve just moved my rails app to a freshly-configured Debian Etch box, running rails 1.2.6, and I’ve run into a quandary. It seems that nothing I do (setting it in the environment.rb file, in the mongrel\_clus…

---

## [Problem installing plugin](https://www.ruby-forum.com/t/problem-installing-plugin/125150)

<div class="topic-metadata">

**Author:** [@Decker](https://www.ruby-forum.com/u/Decker)\
**Replies:** 1\
**Last updated:** [January 7, 2008, 12:42am UTC](https://www.ruby-forum.com/t/problem-installing-plugin/125150 "2008-01-07T00:42:09Z")

</div>

I’m trying to install the simply\_rich\_authenticator plugin with the following command: ruby script/plugin install -x http://simply-rich-authenticator.googlecode.com/svn/trunk The problem seems to stem from the -x opt…

---

## [Single Table Inheritance Association Problem](https://www.ruby-forum.com/t/single-table-inheritance-association-problem/102713)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 4\
**Last updated:** [January 7, 2008, 12:36am UTC](https://www.ruby-forum.com/t/single-table-inheritance-association-problem/102713 "2008-01-07T00:36:54Z")

</div>

Hi there, I’m using STI in a new application, and something is terribly wrong with has\_many associations. Right, so I have number of subclasses that inherit from one concrete base class. Each sub class can possibly h…

---

## [CLEAN and DRY](https://www.ruby-forum.com/t/clean-and-dry/125198)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 2\
**Last updated:** [January 6, 2008, 11:57pm UTC](https://www.ruby-forum.com/t/clean-and-dry/125198 "2008-01-06T23:57:11Z")

</div>

is it possible to include a partial from within the global application.html.erb? I have a google ad in my application.html.erb I would like to move it to a partial \_google.html.erb in my layouts directory to keep t…

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

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