similar to: how to update a collection_select from another

Displaying 6 results from an estimated 6 matches similar to: "how to update a collection_select from another"

2006 Aug 17
1
2 newbie question
Hey all, I have 2 newbie questions, 1st question: <%= collection_select (:region, :id, @regionall, :id, :title,options={:prompt=>"- Select cat -"}) %> Ignores the :prompt part while options={:include_blank => true} works. Any idea what I?m doing work with :prompt ? 2nd question: How can make my collection_selected to display it''s third key by default? I know it has
2006 Jul 07
8
Possible name clash?
Scenario: Table in database has two fields, id and category (table name is: categories) Controller is named category_controller.rb Model is named category.rb Helper is named category_helper.rb Form is named list.rhtml in view\category directory The code in play on the form is (from generating scaffold): <% for category in @categories %> <tr> <td><%=
2005 Feb 27
12
Four Days on Rails
There are a number of really good beginner''s guides to Rails on the web now - covering installation through to running the first ''scaffold''. However, as a complete Ruby newbie, I found the next stage - moving on to producing ''real'' applications - quite hard going. To help others make the same journey, I''ve put together a ''next
2008 Jun 04
0
routers are handled incorrectly on production
Has anyone found their routes are handled differently on production? #works fine http://local:3000/admin/orders/new #returns 404.html http://domain.com/admin/orders/new production.log: Processing AdminController#orders (for 67.112.120.159 at 2008-06-04 09:06:11) [GET] Session ID: 2345fb73da6d2f975bbbfc1dc4dd5ce5 Parameters: {"action"=>"orders",
2006 May 08
4
Tables names with model classes in seperate modules
I have a module that deals with content pages and categories in my application so create following tables: content_pages content_categories Obviously I need a Page and Category module to map to these tables, but in order to avoid conflicts with other Category classes, i declare my model classes like this: Content::Page Content::Category Now, that''s all fine - except that my models
2011 Nov 02
4
undefined method `updated_at' for #<Classified:0x686c5e4>
HEllo, I have the following problem with rails, I am new in this...is there anyone who explain to me what´s happens? Thanks See below: NoMethodError in Classified#show Showing app/views/classified/show.rhtml where line #17 raised: undefined method `updated_at'' for #<Classified:0x686c5e4> Extracted source (around line #17): 14: 15: <strong>Date Posted:</strong>