| View previous topic :: View next topic |
| Author |
Message |
Fred Obermann Posted via mailing list.
|
Posted: Thu Jun 19, 2008 1:36 pm Post subject: netbeans/rails/malline question |
|
|
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. |
|
| Back to top |
|
 |
Chris Kutler Posted via mailing list.
|
Posted: Fri Jun 20, 2008 5:42 pm Post subject: netbeans/rails/malline question |
|
|
I 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:
| Quote: | 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@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|