can you post the relevant model and controller code so we can take a look,
JB On 1 June, 03:31, Carl <[email protected]> wrote: > I need some help here and I'm hoping someone else can see what I'm > missing here. I have a problem trying to create a model (Universe) > from my AS form. It works perfectly from the console, but when using > the AS form it gives me this error: > > Processing UniversesController#create (for 127.0.0.1 at 2009-05-31 > 19:15:52) [POST] > Parameters: {"commit"=>"Create", "action"=>"create", > "authenticity_token"=>"WhMg1zQk16GhhNy6ItqemMHedMUdp8Kq11TRj2rirCg=", > "controller"=>"universes", "record"=>{"name"=>"test", > "description"=>"test", "required_stats"=>{"1243822546432"=>{"stat"=> > {"id"=>""}}}}} > User Load (0.3ms) SELECT * FROM "users" WHERE ("users"."id" = 1) > > NameError (uninitialized constant Locations): > > Rendered rescues/_trace (42.1ms) > Rendered rescues/_request_and_response (1.3ms) > Rendering rescues/layout (internal_server_error) > > The required stats is just another model, it is okay that it is blank. > > It was saying "NameError (uninitialized constant Events):" for a > while, and I have no idea what fixed it, as I neither changed anything > significant nor does the error makes any sense to me. I have the > has_many and belongs_to set up between the models, but the create > action shouldn't really matter since in this case I'm not creating an > associated model, I'm just creating a Universe model. I know this was > working back a while ago since that is how I entered the models into > the working app I have on Heroku, but I just reverted to an older > version and I get a similar, but different error about the model > Experiences. It almost seems random, but each time it shows up in that > circumstance it always references the same model. Again, this works > without any problem if I create the models from the console, so I > don't think it is a validation related error of some kind. The app is > available on github in my public repo. I'm really not sure when or why > this broke (I have made quite a few changes, but the fact that it > works from the console makes me think it might be AS related) and the > error is pretty unhelpful since it doesn't say where the error is > occurring, which seems odd. > > I can other models from within their AS forms without any problems, it > just seems to be this one model that is freaking out. > > http://github.com/nextekcarl/storylines/tree/master > > Carl --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
