Serve is a small Rack-based web server and rapid prototyping framework for Web applications (specifically Rails apps). Serve is meant to be a lightweight version of the Views part of the Rails MVC. This makes Serve an ideal framework for prototyping Rails applications or creating simple websites. Serve has full support for Rails-style partials and layouts.
Hi. I’d like to add an .active class to appropriate menu items depending on where they are. For this, I’d like to query the request.request_uri variable to see which page my menu partial is being called from, but this currently returns an empty string.
Hi. I’d like to add an
.active
class to appropriate menu items depending on where they are. For this, I’d like to query therequest.request_uri
variable to see which page my menu partial is being called from, but this currently returns an empty string.