search for: rubyisms

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

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
I have a heap of fill-out-form/send-website-operator-mail/send-user-confirmation types of forms. It''s daunting when you think about how many files it takes to do this. I''m not coming up with an obvious "Rails" way to pull it off, so I thought it''d be good to know if anyone else has worked through this (7 per form!). models/ my_form_data.rb
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")...