|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
netbeans/rails/malline questionI am trying to use 'malline' in the context of a rails application
developed in netbeans. I added a directory 'extras/' under the root on the same level as
erb_out.rb
I added the following to 'config/environment.rb'
config.load_paths += %W( #{RAILS_ROOT}/extras )
Now this seems like it ought to work, but no!
When I start up webrick I get the following message:
/opt/java/languages/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/
So, I tried hardcoding the path:
require '/full/path/to/malline/rails'
And I still get the same error message
Pray tell me the error of my ways. |
|
|
Re: netbeans/rails/malline questionI took a look at the Malline site and gave it a try myself.
I wasn't successful following their instructions for using it as a gem (I got c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in `load_missing_constant': uninitialized constant ActionView (NameError) Nor was I successful using it as a plugin. The closest that I got was to put the malline directory in vendors/plugins and not include the require statement (supposedly if you use as a plugin, you don't need the require statement). If you put it in vendors/plugins you don't need the config.load_paths statement either. Sorry I can't be of more help. Fred Obermann wrote: > I am trying to use 'malline' in the context of a rails application > developed in netbeans. > > I added a directory 'extras/' under the root on the same level as > 'config/' > and dropped in the directory, 'malline/', containing: > > erb_out.rb > form_builder.rb > rails.rb > template.rb > view_proxy.rb > view_wrapper.rb > view_xhtml.rb > > I added the following to 'config/environment.rb' > > config.load_paths += %W( #{RAILS_ROOT}/extras ) > require 'malline/rails' > > Now this seems like it ought to work, but no! > > When I start up webrick I get the following message: > > /opt/java/languages/jruby-1.1.2/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:27:in `require': no such file to load -- malline/ > rails (MissingSourceFile) > from /opt/java/languages/jruby-1.1.2/lib/ruby/site_ruby/1.8/ > rubygems/custom_require.rb:27:in `require' > > So, I tried hardcoding the path: > > require '/full/path/to/malline/rails' > > And I still get the same error message > > Pray tell me the error of my ways. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |