Displaying 4 results from an estimated 4 matches for "render_scaffold".
2006 May 26
3
Breakdowns in has_many abstraction
...mbrellas(true)
@person.save! # now this will validate
end
flash[:notice] = ''Person was successfully updated.''
redirect_to :action => ''show'', :id=>@person.id
rescue => exception
flash[:notice] = exception.to_s
render_scaffold(''edit'')
end
end
Here''s a transcript showing the second problem, from a breakpoint I
set in the update method. It illustrates some of the weirdness that''s
going on here.
> @umbrellas = @person.umbrellas
=> [#<Umbrella:0x38d7218 @attributes={&quo...
2006 Feb 16
21
RoR VS Rails ???
I didn''t get a chance to go to this meeting debating WebObjects Vs
Rails, but here''s a report about it:
http://desperatepundit.com/blog/cremes/technology/2006/02/15/WebObjects-versus-Ruby-On-Rails.html
I don''t get what he''s saying, hand coding the model? yeah, you COULD ...
but what about script/generate ???
And is that so what he said about security?
--
2006 Aug 13
5
Newbie question: scaffold not working
...y/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:292:in
`render_template''
c:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:251:in
`render_file''
c:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/scaffolding.rb:168:in
`render_scaffold''
c:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/scaffolding.rb:110:in
`list''
c:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/scaffolding.rb:97:in
`index''
c:/dev/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/acti...
2006 Mar 31
18
Modelling Foreign Keys
Can someone point me to a reference or tutorial that shows how to map
foreign key relationships in the model?
For example given:
Users
id
name
email
Posts
id
user_id
title
How do I associate user_id with users.id in the Post and User models?
has_many and belongs_to don''t seem to do it.
--
Posted via http://www.ruby-forum.com/.