Displaying 3 results from an estimated 3 matches for "show_item".
2006 Mar 15
4
[NQ] How to set an initial FK for a new item of something?
Hi all,
running into a little problem here. I''ve a list of things
with a "New thing" link beneath it. When you click that link,
obviously, a new thing shall be created. Now, that works pretty
fine for things that don''t have foreign keys, but for things that
do it crashes, since there is not yet a thing.other_thing.name
available.
I suspect you can somewhere in
2006 Mar 30
4
Select List to change type of STI class
Hi:
I''m trying to create a drop-down list to change the type of a Single
Table Inheritance class. I tried this:
<%= select :user, :type, [ [''Author'', ''Author''],
[''Editor'', ''Editor''],
[''Administrator'', ''Administrator''] ]
2006 May 01
3
Routing requests without ID parameter
Hi there,
This seems to be obvious but after reading a few times the section in
the Agile Wb Dev with Rails I''m still strugling.
I have a table with categories names which I want to display in the url
instead of their id. So far I managed to get both in the url by adding:
map.connect ''/:id/:category/'', :controller => "site", :action =>