Displaying 6 results from an estimated 6 matches for "category_controller".
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><%= h(category.category) %>
<td><%...
2006 Aug 16
1
how to update a collection_select from another
...;?id=''+this[this.selectedIndex].value,
{asynchronous:true, evalScripts:true});"}) %><br>
<%= render :partial => "related_provinces" %>
This is my partial:
_related_provinces.rhtml:
<%= collection_select(:region, :id, @provinces, :id, :title) %>
category_controller.rb:
def list
@regionall = Region.find(:all, :conditions => [ "parent_id = ?",
''1''],:order=>"id")
@provinces = Region.find(:all, :conditions => [ "parent_id = ?",
@region.parent.id],:order=>"id")
end
The problem is that it does...
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
...ers", "id"=>"new", "controller"=>"admin"}
ActionController::UnknownAction (No action responded to orders):
The file hierarchy is:
$ ls -xR1 ./app/controllers/
./app/controllers/:
admin
admin_controller.rb
application.rb
categories_controller.rb
category_controller.rb
info_controller.rb
login_controller.rb
search_controller.rb
store_controller.rb
./app/controllers/admin:
orders
orders_controller.rb
./app/controllers/admin/orders:
line_items_controller.rb
--
Anthony Ettinger
408-656-2473
http://anthony.ettinger.name
--~--~---------~--~----~------------~...
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>