Displaying 3 results from an estimated 3 matches for "scaffol".
Did you mean:
scaffold
2007 May 27
3
Scaffold and foreign keys
Hello,
I create a migration to add a foreign key ''page_id'' to a table
''main_sections''. After running the migration and adding the column,
the scaffol that I have on the main_setions table does not add the
foreign key into the CRUD.
Any ideas why this is the case?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To pos...
2006 Jun 19
0
logingenerator multiple select
...ginGeneratorACLSystem
(sql sctructure of a habtam relationship of roles//users,
roles//permissions and so, being able to asign roles[with the associated
permissions]to the users..)
anyway, now i need to implement associating the correct permissions for
the correct role in the view, and so after scaffoling, i''ve got:
--------
def new
@role = Role.new
@permissions = Permission.find(:all)
end
def create
@role = Role.new(params[:role])
if params[:permission]
params[:permission].split(" ").each do |permission|
@permission = Permission.find(permission)...
2006 Apr 03
3
[newbi] Problem Routes
Hello,
i try to follow this video
http://www.illanti.com/files/locomotive101.mov
After change my routes
routes.db
ActionController::Routing::Routes.draw do |map|
# Add your own custom routes here.
# The priority is based upon order of creation: first created ->
highest priority.
# Here''s a sample route:
# map.connect ''products/:id'', :controller =>