RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

divineforest — 4 posts

I just launched gem factory_girl-seeds which can speedup your tests runtime in about 2 times :)
I just launched irake for easy and fast running rake tasks in rails console.

Just add gem 'irake' and then in rails console:

rake 'routes'
rake 'db:migrate'
etc
I just launched gem dev_log_in for easy login in in development environment. To log in as admin just go to

http://localhost:3000/dev/log_in/admin

or

http://localhost:3000/dev/log_in/user1 for user1@example.org
I just launched human_attribute gem for rails attribute translation.

In YAML:

en
activerecord
attribute_values:
user:
state:
new: Just registered
ok: Active

then:

user = User.first
user.state # => "new"
user.human_value(:state) # => "Just registered"