-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sinatra example #57
Comments
What issues are you running into? Require rabl in the gemfile and then do: get "/" do
render :rabl, :foo
end should work. I agree though having it in the wiki is a good idea. |
I'm getting an exception:
|
Seems like Rabl doesn't properly depend on ActiveSupport. |
Ah yes that is correct. I was using RABL with AR or DM (and Padrino or Rails) so ActiveSupport was already included. I will add active_support proper to the gemspec, or evaluate if I can remove it from core use and only require it for inflection handling. |
Will put up an example for setting up in a sinatra app on the wiki soon. Should help clear this up. |
Added Sinatra example here (working for me): https://github.com/nesquena/rabl/wiki/Setup-for-Sinatra |
Awesome, thanks. |
perhaps the documentation at https://github.com/nesquena/rabl could be modified to refer to https://github.com/nesquena/rabl/wiki/Setup-for-Sinatra ? Following https://github.com/nesquena/rabl, I had tried to do something like render "posts/index" which i guess is appropriate for Padrino but not Sinatra. thanks |
I can't seem to get rabl to work with sinatra, can you provide an example, perhaps in the wiki?
The text was updated successfully, but these errors were encountered: