search for: parentcontroller

Displaying 3 results from an estimated 3 matches for "parentcontroller".

Did you mean: parent_controller
2006 Dec 28
0
Localization using inheritance
Hi! I''m trying to implement localization using inheritance, i.e.: class ParentController < ApplicationController layout "mylayout" def initialize #do something end def index #do something end def search #do something end # ... end Controller do his job and render page using "mylayout" and views from "/view/parent" fold...
2006 Feb 23
3
has_many: inserting children when inserting parent
...rhtml form has two text fields, one for a parent''s name and one for a space delimited list of childrens'' names. <%= text_field ''parent'', ''name'' %> <%= text_field ''childlist'', ''names'' %> Now the ParentController and its create method which I would like to save both the parent and all its childeren: class ParentsController < ApplicationController def create @parent = Parent.new(params[:parent]) @parent.save childnames = params[:childlist][:names] childname.split(/\s+/).each do |name|...
2006 Jan 18
3
I need superman!
I have a legacy database that I can''t figure out. I''ve tried hundres of times and spent way tooooo much time trying to figure this out. I don''t think that rails can do it. Maybe there is a superman here who can get this too work. I''m going to post my sql dump to produce a very simple database. If anyone can get rails to work with this THEY WILL BE MY