sinatra/sinatra — Issue #433: Helpers that are setters (methods with equals signs) don't work in controller
Author: tlianza
Created: 2011-12-25 08:09:24+00:00
State: open

I posted this question on StackOverflow, but it seems like a bug: http://stackoverflow.com/questions/8619792/sinatra-helper-with-setter

In short, if I define a method inside 'helpers do' that looks like `foo=` and then try to call `foo=` in an action, instead of calling that method, it assigns a value to a local variable `foo`. However, if I make a method called `set_foo` and call that, it works fine.