Created attachment 93225 [details]
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).
Thanks for the patch! It seems fine, I'll integrate it to trunk soon.
Patch applied in b0f4db350cab (sorry for the delay).
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)
User: Erno Mononen <firstname.lastname@example.org>
Log: #179422: Defining the rails environment is not propagate to the generate action
- thanks to ehartmann for the patch
Issue added to list  of community fixed bugs.