Ok,
So I followed the directions… I did a ‘gem install markaby’ (which
sounds
like its enough to get me going for rails), but I wasn’t sure, so I
tried to
install the plugin as well.
Plugin installation fails looking for a file:
Script/plugin install http://code.whytheluckystiff.net/svn/markaby/trunk
Outputs this error:
- ./trunk/svnindex.xsl
/usr/local/lib/ruby/1.8/open-uri.rb:290:in `open_http’: 404 Not Found
(OpenURI::HTTPError)
When I try to access my .mab file I get a template not found, leading me
to
think that something isn’t installed right.
What am I doing wrong here?
-RR
+1
I’m also getting a ‘template not found’ error from the ‘gem’
installation of
markaby.
-Larry
the plugin installation doesn’t work. Just get the code and do it
manually like Jon says. Just dump it into vendor/plugin.
do they work with the @helpers. prefix?
I have to add that you cannot us session[:stuff] or params[:id] in
markaby like in erb.
You must use @session and @params.
Took me a while to figure that one out.
On 6/15/06, Jamie Orchard-Hays [email protected] wrote:
Ok,
What am I doing wrong here?
–
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
–
Not sure what you mean.
Give me an example and I’ll be happy to try.
On 6/15/06, Jamie Orchard-Hays [email protected] wrote:
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
–
I see…
text @helpers.session[:user][:name] worked like a charm… I just
never realised that session[] was a helper.
Other helpers don’t need the @helpers though. “link_to ‘Edit’, :action
=> ‘edit’, :id => @laptop” works fine.
On 6/15/06, Jamie Orchard-Hays [email protected] wrote:
On 6/15/06, Jamie Orchard-Hays [email protected] wrote:
do they work with the @helpers. prefix?
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
–
td { @helpers.link_to ‘Edit’, :action => ‘edit’, :id => @laptop }
See “a note about helpers” here:
http://markaby.rubyforge.org/