is it just me or is https://github.com/seuros/state_machine more current than https://github.com/pluginaweek/state_machine - is there a way to get ruby gem pointed at the right repo?
i have a boss who is asking me to abstract my controller into private methods (eg: params sanitization, fetching model query, rendering views)… does that feel un-railsy to you guys, or does that make sense? (this controller only has an index method)
i guess i’ve just never had a controller action really do much beyond those 3 things… so abstracting those into separate private methods seems bizarre
can you guys help me figure this out, i’m doing - subintent_space = Arel::Nodes::NamedFunction.new('REPLACE', [copies[:subintent],'_',' ']) - but when i run subintent.to_sql, i get: RuntimeError: unsupported: String
ah, i guess it needs to be - Arel::Nodes::NamedFunction.new('REPLACE', [copies[:subintent], Arel::Nodes::Quoted.new('_'), Arel::Nodes::Quoted.new(' ')]) …. how lengthy