This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 93225 [details] Small patch I'm using rails project with a specific environment on my computer. As 'development' does not exists, every generate action report an exception with the missing config/environment/development.rb file. I have to use the console to generate the files with something like : $ RAILS_ENV=eric script/generate ... A fix may be to simply add the rails environment defined in the project panel to be added to the environment of the RubyExecutionDescriptor of GenerateAction A quick fix is attached to the bug (from the trunk version). -éric
Thanks for the patch! It seems fine, I'll integrate it to trunk soon.
Patch applied in b0f4db350cab (sorry for the delay).
Thanks Erno, I've just tested it ant it is fine for me. I've updated the status to verified.
Integrated into 'main-golden', will be available in build *201001240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b0f4db350cab User: Erno Mononen <emononen@netbeans.org> Log: #179422: Defining the rails environment is not propagate to the generate action - thanks to ehartmann for the patch
Issue added to list [1] of community fixed bugs. [1] http://wiki.netbeans.org/NetFIXIssues