Skip to content
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

Undefined method url for Geminabox #86

Closed
macfanatic opened this issue Dec 5, 2012 · 2 comments
Closed

Undefined method url for Geminabox #86

macfanatic opened this issue Dec 5, 2012 · 2 comments

Comments

@macfanatic
Copy link

views/index.erb line #3 has a url() method evidently that isn't defined. Any ideas?

I'm running ruby 1.9.3 on Ubuntu with RVM, get the same error whether I do a simple rackup in the project folder, or configured via passenger & then view the apache error logs.

I'm not familiar with Sinatra to know if that's where this function should come from.

@tomlea
Copy link
Member

tomlea commented Dec 5, 2012

It should be provided by Sinatra:
http://www.sinatrarb.com/intro#Generating%20URLs
http://rubydoc.info/gems/sinatra/Sinatra/Helpers#url-instance_method

What version of Sinatra are you running?

@macfanatic
Copy link
Author

Thanks for pointing me in the right direction, the server had sinatra v1.0 installed, but updating to 1.3.3 resolved the issue.

Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants