Taryn

State of authentication


~3 years ago by Taryn on Ruby-coloured glasses.
We're using restful_authentication for login - because it's a good standard set of tools. However, we didn't want activation for our system, as it's just...

git gotchas: the wrong forking repository


~3 years ago by Taryn on Ruby-coloured glasses.
So I'm pretty new to git, really, and am learning all the places that I can stumble and fall head-over-arse. Today's escapade is entitled "how to recover...

ActiveRecord::Validations in ActiveResource


~3 years ago by Taryn on Ruby-coloured glasses.
The holy grail for ActiveResource users is for ARes to actually behave like ActiveRecord. In theory, ARes is just like AR, but in practice it's only kinda...

rails gotchas: HttpMock not enough variables


~3 years ago by Taryn on Ruby-coloured glasses.
A quickie for my own remembrance. I'm currently setting up HttpMock to test ActiveResource. I'd set up a few extra "routes" for it to mock out and kept...

rails gotchas: restful_authentication not 2.0 compliant?


~3 years ago by Taryn on Ruby-coloured glasses.
restful_authentication[1] is a great plugin, but the standard svn version is showing it's age. It's a whole month or so out of date... which is, of course...

rails gotchas: assert_raises a syntax error


~3 years ago by Taryn on Ruby-coloured glasses.
I found that assert_raise was causing a syntax error of the form: syntax error, unexpected '{', expecting kEND (SyntaxError) For a fairly simple test:should...

Testing gotchas: shoulda not_allow_values_for


~3 years ago by Taryn on Ruby-coloured glasses.
If you're using should_not_allow_values_for and getting a failing test something in the lines of: Failure: test: User should not allow email to be set to...

You shoulda test your plugin!


~3 years ago by Taryn on Ruby-coloured glasses.
So, lets assume you have a plugin "acts_as_teapot" that you want to include in some of your model classes. You've written a number of useful methods for...

Yahoo group spam: how to avoid it


7 months ago by Taryn on Ruby-coloured glasses.
I've been getting a lot of this spam lately. Generally by receiving a *genuine* notification of having been added to spammy yahoo group along the linesFrom...

should_set_the_flash better


~3 years ago by Taryn on Ruby-coloured glasses.
should_set_the_flash_to doesn't do quite what I'd like. I want to: a) specify which level of flash should be set (ie make sure it's a notice and not an...