search for: rubyism

Displaying 4 results from an estimated 4 matches for "rubyism".

Did you mean: rubyist
2013 Apr 11
3
puppet-lint -- learning stuff about style but also generating questions
Here''s one I learned: I originally had # Ensure /etc/hosts contains the basics host { "${fqdn}": host_aliases => $hostname, ip => $ipaddress, } And thru some trial and error, got down to this (which puppet-lint does not gripe about) # Ensure /etc/hosts contains the basics host { $fqdn: host_aliases => $hostname, ip => $ipaddress, }
2006 Apr 23
13
post() to other controller in functional test?
In a functional test, I want to call an action in another controller (a login) before testing things in the current controller. As far as I can tell from the extremely sparse documentation and the AWDR book, this seems to be impossible. The post() functions takes an action argument only, and that''s that. Surely I must be misunderstanding things? -- Calle Dybedahl
2006 Jun 10
0
DRY Up Lots o'' Mailers
...otsOfMailersController that contains a method for each mailer. The models and views still have to remain. I''ve refactored some of the repetitive code involved in wiring up the mailer into a protected method. Any other hints? (I just can''t help thinking there''s some cool Rubyism for doing this :) -- View this message in context: http://www.nabble.com/DRY-Up-Lots-o%27-Mailers-t1765204.html#a4804773 Sent from the RubyOnRails Users forum at Nabble.com.
2008 Jan 14
13
prototype/script.aculo.us ecosystem
.../Scripty have such an ecosystem of extensions (as do Rails and jQuery)? - If these extensions exist, how come they are so hard to track down? My direct comparison, unfairly influenced by my greater experience with Prototype, is that there is little difference and that Prototype gives me more Rubyisms, so it feels more natural. Now that there is a new release, is there anyone in a position to provide a comparison of how Proto/Scripty have evolved to address perceived deficiencies (again, leaving aside aesthetic or religious things like underlying philosophy or "beautiful code"...