# Rails

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

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

---

## [Login redirect on ajax call?](https://www.ruby-forum.com/t/login-redirect-on-ajax-call/106161)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/login-redirect-on-ajax-call/106161 "2007-06-06T23:23:53Z")

</div>

Hi, I have a link that uses the link\_to\_remote helper, however the method it calls requires the user to log in. before\_filter :login\_required How can I get the method to re-direct the user if they are not logged in …

---

## [Testing path problems](https://www.ruby-forum.com/t/testing-path-problems/106143)

<div class="topic-metadata">

**Author:** [@ben\_wiseley](https://www.ruby-forum.com/u/ben_wiseley)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 11:16pm UTC](https://www.ruby-forum.com/t/testing-path-problems/106143 "2007-06-06T23:16:51Z")

</div>

I was converting an existing rails app to an engine… that worked fine just put everything in an engine (controllers, models, etc.). All tests passed if they were in the engine but, for functional tests, outside of the …

---

## [ActionWebService API ignoring multiple return values?](https://www.ruby-forum.com/t/actionwebservice-api-ignoring-multiple-return-values/106160)

<div class="topic-metadata">

**Author:** [@Colleen](https://www.ruby-forum.com/u/Colleen)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/actionwebservice-api-ignoring-multiple-return-values/106160 "2007-06-06T23:05:50Z")

</div>

I’m using ActionWebService and defining the following API method: api\_method(:validate, :expects =\> \[{:id =\> :int}, {:value =\> :string}\], :returns =\> \[{:valid =\> :boolean}, {:error\_message =\> :string}\]) if I impleme…

---

## [Make has\_many conditions truly dynamic](https://www.ruby-forum.com/t/make-has-many-conditions-truly-dynamic/106150)

<div class="topic-metadata">

**Author:** [@dasil003](https://www.ruby-forum.com/u/dasil003)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/make-has-many-conditions-truly-dynamic/106150 "2007-06-06T22:44:48Z")

</div>

I have an assocation like this: has\_many :open\_houses, :conditions =\> {:created\_at\_gt =\> Time.today} This works thanks to AR::Extensions, but the problem is this is initialized when the server starts up. The best sol…

---

## [Active Record Associations](https://www.ruby-forum.com/t/active-record-associations/105737)

<div class="topic-metadata">

**Author:** [@luke001](https://www.ruby-forum.com/u/luke001)\
**Replies:** 9\
**Last updated:** [June 6, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/active-record-associations/105737 "2007-06-06T22:28:45Z")

</div>

Hi, I am trying to create 3 tables and link them to a fourth. I want table Post\_Type to be linked to tables: Supplies,Textbooks,Miscs. Below are my table defs and models and controller. I only included a few becaus…

---

## [ActiveLdap: no such file to load -- ldap (MissingSourceFile)](https://www.ruby-forum.com/t/activeldap-no-such-file-to-load-ldap-missingsourcefile/106142)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/activeldap-no-such-file-to-load-ldap-missingsourcefile/106142 "2007-06-06T22:18:18Z")

</div>

I just installed ActiveLdap, copied the plugin into vendor/plugins and setup a config/ldap.yml file. Starting rails gives me an error that it can not find the ldap source file. (I installed from the gem with its prere…

---

## [Insert only field](https://www.ruby-forum.com/t/insert-only-field/106152)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 10:11pm UTC](https://www.ruby-forum.com/t/insert-only-field/106152 "2007-06-06T22:11:40Z")

</div>

Hello, I am new to RoR. I have situation that cannot find solution. I use the same user model for signup to system and edit user profile. How to make username field just insertable and not updatable? Is it possible t…

---

## [Third party helper module (newbie)](https://www.ruby-forum.com/t/third-party-helper-module-newbie/106122)

<div class="topic-metadata">

**Author:** [@surge](https://www.ruby-forum.com/u/surge)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/third-party-helper-module-newbie/106122 "2007-06-06T22:08:40Z")

</div>

Hello everybody, I found a cool helper for generating dependant select controls by Dimitrij Denissenko, which I don’t quite know how to install it. The structure of the helper is as follows: module ActionView module…

---

## [Peformance tuning tools](https://www.ruby-forum.com/t/peformance-tuning-tools/106097)

<div class="topic-metadata">

**Author:** [@Tyche](https://www.ruby-forum.com/u/Tyche)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/peformance-tuning-tools/106097 "2007-06-06T21:52:38Z")

</div>

Hi, I am kind of new to RoR and currently experimenting with a dummy site of mine. I have MySQL as database.I would like to know if we have any tools to check database performance. Do we have any plugin for Rad rails…

---

## [In\_place\_editor\_field - for multiple fields together](https://www.ruby-forum.com/t/in-place-editor-field-for-multiple-fields-together/106147)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 9:33pm UTC](https://www.ruby-forum.com/t/in-place-editor-field-for-multiple-fields-together/106147 "2007-06-06T21:33:59Z")

</div>

Does anyone know if there is a way to utilize the in\_place\_editor\_field with multiple fields together? Currently, I use the in\_place\_editor\_field for one field, but I want to be able to select a group of fields and h…

---

## [Form\_for with divs and fieldsets =\> stupid](https://www.ruby-forum.com/t/form-for-with-divs-and-fieldsets-stupid/106064)

<div class="topic-metadata">

**Author:** [@thekernel](https://www.ruby-forum.com/u/thekernel)\
**Replies:** 5\
**Last updated:** [June 6, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/form-for-with-divs-and-fieldsets-stupid/106064 "2007-06-06T21:32:35Z")

</div>

If I do this: +============================================+ \<% form\_for :item, :url =\> { :controller =\> 'inventory', :action =\> 'create' } do |f| %\> \<%= render :partial =\> 'item\_form', :locals =\> { :f =\> …

---

## [Set rake db:migrate environment](https://www.ruby-forum.com/t/set-rake-db-migrate-environment/106134)

<div class="topic-metadata">

**Author:** [@Landon](https://www.ruby-forum.com/u/Landon)\
**Replies:** 4\
**Last updated:** [June 6, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/set-rake-db-migrate-environment/106134 "2007-06-06T21:29:35Z")

</div>

When running rake db:migrate, how do you control which environment gets migrated? Running it without options always updates the development database. This is obviously not what I want to do on the production server. T…

---

## [Our company is looking for Ruby on Rails Software/Web Develo](https://www.ruby-forum.com/t/our-company-is-looking-for-ruby-on-rails-software-web-develo/106145)

<div class="topic-metadata">

**Author:** [@LGS.Edge](https://www.ruby-forum.com/u/LGS.Edge)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/our-company-is-looking-for-ruby-on-rails-software-web-develo/106145 "2007-06-06T21:22:35Z")

</div>

Our company is looking for Ruby on Rails Software/Web D… Key Responsibilities include: Implementation of front-end application templates for a high availability of the web-based applications. Work closely with a cros…

---

## [Uninitialized constant Cart::CartItem](https://www.ruby-forum.com/t/uninitialized-constant-cart-cartitem/106144)

<div class="topic-metadata">

**Author:** [@gino](https://www.ruby-forum.com/u/gino)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-cart-cartitem/106144 "2007-06-06T21:19:11Z")

</div>

I am following a tutorial and get thar error creating a cart, and can’t figure it out, uninitialized constant Cart::CartItem Extracted source (around line #8): 5: Your Shopping Cart 6: 7: 8: \<% for item in @…

---

## [Contextual Associations](https://www.ruby-forum.com/t/contextual-associations/105813)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 3\
**Last updated:** [June 6, 2007, 8:44pm UTC](https://www.ruby-forum.com/t/contextual-associations/105813 "2007-06-06T20:44:32Z")

</div>

No doubt this has been covered but I’ll be damned if I can find it. References appreciated so I can add to my library. I have 3 tables in my problem: changes, environments, comments changes are many-to-many to environ…

---

## [RESTful unique subdomains](https://www.ruby-forum.com/t/restful-unique-subdomains/106133)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 7:27pm UTC](https://www.ruby-forum.com/t/restful-unique-subdomains/106133 "2007-06-06T19:27:33Z")

</div>

Does anyone know the best way to handle arbitrary sub domains based on user selection RESTfully? In other words, in our app we’re going to let the user select a sub domain, and need that to resolve to our main Rails a…

---

## [Could I use inherited model?](https://www.ruby-forum.com/t/could-i-use-inherited-model/106085)

<div class="topic-metadata">

**Author:** [@Magicloud](https://www.ruby-forum.com/u/Magicloud)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/could-i-use-inherited-model/106085 "2007-06-06T19:04:08Z")

</div>

Like I have a class A and a class B, A \< B, B \< ActiveRecord::Base. as and bs are two different table in database, as has bs’s columns. (I use postgresql’s inherit table). Now I do ‘A.find(:all, conditions =\> “acol1 =…

---

## [RadRails vs. Textmate](https://www.ruby-forum.com/t/radrails-vs-textmate/106113)

<div class="topic-metadata">

**Author:** [@CPerry](https://www.ruby-forum.com/u/CPerry)\
**Replies:** 7\
**Last updated:** [June 6, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/radrails-vs-textmate/106113 "2007-06-06T18:54:17Z")

</div>

Is there anyone out there can give me a comparison between RadRails/ Aptana and Textmate? I have been using skEdit for all of my general coding stuff, but I am now looking into getting a new editor for my Ruby/Rails w…

---

## [Making a simple table grid](https://www.ruby-forum.com/t/making-a-simple-table-grid/106126)

<div class="topic-metadata">

**Author:** [@revanche](https://www.ruby-forum.com/u/revanche)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/making-a-simple-table-grid/106126 "2007-06-06T18:46:37Z")

</div>

I searched around the forums for an answer to this question, but most seemed to deal with structures and functionality that are a little farther beyond what I am looking for. Given that a data set (say, @results), how…

---

## [Highlight and pagination](https://www.ruby-forum.com/t/highlight-and-pagination/106077)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 6:36pm UTC](https://www.ruby-forum.com/t/highlight-and-pagination/106077 "2007-06-06T18:36:06Z")

</div>

I made a search-field which shows all hits and highlights the all words searched for: def suche if params\[:link\]\[:suchfeld\] == "description" @description = "show" @highlight = params\[:suche\] …

---

## [Problem Playing Fash Movies in Rails app and IE](https://www.ruby-forum.com/t/problem-playing-fash-movies-in-rails-app-and-ie/106132)

<div class="topic-metadata">

**Author:** [@athem](https://www.ruby-forum.com/u/athem)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/problem-playing-fash-movies-in-rails-app-and-ie/106132 "2007-06-06T18:34:04Z")

</div>

Has anyone experienced problems with playing flash movies (swf’s) in IE whose links appear in views? We’re looking for a solution to this. If we put a flash movie in the directory public/fla (under RAILS\_ROOT), and u…

---

## [Any RoR enthusiats in your personal network looking for a ne](https://www.ruby-forum.com/t/any-ror-enthusiats-in-your-personal-network-looking-for-a-ne/106103)

<div class="topic-metadata">

**Author:** [@Kainne\_Hansbury](https://www.ruby-forum.com/u/Kainne_Hansbury)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/any-ror-enthusiats-in-your-personal-network-looking-for-a-ne/106103 "2007-06-06T18:32:04Z")

</div>

Hi, A very good client of mine has asked me to fill some Ruby on Rails positions with the best and brightest RoR technologists. My client is a startup in the Music Indusrty with a very innovative online product. I…

---

## [File\_column plugin problems](https://www.ruby-forum.com/t/file-column-plugin-problems/67089)

<div class="topic-metadata">

**Author:** [@kanhu](https://www.ruby-forum.com/u/kanhu)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 6:30pm UTC](https://www.ruby-forum.com/t/file-column-plugin-problems/67089 "2007-06-06T18:30:45Z")

</div>

Hi, I am using file\_column plugin to upload files. By using this , i have successfully upload files in my local file system. When i am going to view all these uploaded images then the url\_for\_file\_column which is ex…

---

## [Contents of a has\_many collection](https://www.ruby-forum.com/t/contents-of-a-has-many-collection/106125)

<div class="topic-metadata">

**Author:** [@halfgaar](https://www.ruby-forum.com/u/halfgaar)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/contents-of-a-has-many-collection/106125 "2007-06-06T17:51:57Z")

</div>

Hi, I need some help understanding when fields of a Rails model are updated. In this case, it’s about the fields of a has\_many collection. I have a hypothetical model beehive, which has\_many(:bees). In the controller…

---

## [Questions about inheritance in Rails](https://www.ruby-forum.com/t/questions-about-inheritance-in-rails/106117)

<div class="topic-metadata">

**Author:** [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Replies:** 3\
**Last updated:** [June 6, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/questions-about-inheritance-in-rails/106117 "2007-06-06T16:58:48Z")

</div>

I am in the process of subclassing some things in a current Rails project and would like some feedback on how I’m approaching it… what I have works but I’m not sure if there is a better way to approach this. :slight\_s…

---

## [Cookies question](https://www.ruby-forum.com/t/cookies-question/106114)

<div class="topic-metadata">

**Author:** [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/cookies-question/106114 "2007-06-06T15:48:22Z")

</div>

Hello all, I had some problems with setting and getting array from cookie in controller. I concluded that cookies\[\] would get just a first value if a cookie is array, while request.cookies\[\] would get whole array: co…

---

## [Ruby On Rails Developer Needed - 6 Month Contract - London](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed-6-month-contract-london/106020)

<div class="topic-metadata">

**Author:** [@Nicci](https://www.ruby-forum.com/u/Nicci)\
**Replies:** 2\
**Last updated:** [June 6, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developer-needed-6-month-contract-london/106020 "2007-06-06T15:41:21Z")

</div>

Hi, I am currently looking for a Ruby On Rails Developer to work for a large e-Learning company in Central London. The contract will be 6 months long, starting ASAP. Technical requirements are: Ruby On Rails - Havin…

---

## [Field types of a rails model](https://www.ruby-forum.com/t/field-types-of-a-rails-model/106112)

<div class="topic-metadata">

**Author:** [@halfgaar](https://www.ruby-forum.com/u/halfgaar)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 3:36pm UTC](https://www.ruby-forum.com/t/field-types-of-a-rails-model/106112 "2007-06-06T15:36:20Z")

</div>

Hi, I don’t understand something about the types of the fields/attributes of rails models. In one of my models, InvestmentAdmittanceTransaction, I have a field called client\_new\_participations. It’s a numeric value (…

---

## [.doc to html or text conversion?](https://www.ruby-forum.com/t/doc-to-html-or-text-conversion/106105)

<div class="topic-metadata">

**Author:** [@mroths](https://www.ruby-forum.com/u/mroths)\
**Replies:** 1\
**Last updated:** [June 6, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/doc-to-html-or-text-conversion/106105 "2007-06-06T15:17:19Z")

</div>

Is there anything out there that I can upload a file to my system and convert that document without the use of open office or MSWord, convert it to html? Or at least break it into a file format that can do that? Than…

---

## [\[ANN\] Ruby In Steel 1.1 Now Available!](https://www.ruby-forum.com/t/ann-ruby-in-steel-1-1-now-available/106106)

<div class="topic-metadata">

**Author:** [@huw](https://www.ruby-forum.com/u/huw)\
**Replies:** 0\
**Last updated:** [June 6, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/ann-ruby-in-steel-1-1-now-available/106106 "2007-06-06T15:01:18Z")

</div>

June 6th, 2007 SapphireSteel Software has just released version 1.1 of Ruby In Steel Developer - the professional Ruby and Rails IDE for Visual Studio 2005. Version 1.1 of Ruby In Steel Developer consolidates the feat…

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

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