Rails Hints @RailsHints
Week-daily Ruby and Rails hints, tips and reminders. x.com/robmerrell Joined November 2009-
Tweets20
-
Followers138
-
Following0
-
Likes0
An obvious hint today: Don't keep production database passwords versioned in your database.yml config.
Remember to use filter_parameter_logging in your application controller to keep sensitive info out of your logs. http://bit.ly/56Yidq
Use formtastic for more readable forms: http://github.com/justinfrench/formtastic
When testing consider using factories instead of fixtures. They are easier to maintain and make testing a breeze. http://bit.ly/KwnTW
Make date & time formatting DRY by adding your own formats to core conversions so you can do: time.to_s(:my_format). http://bit.ly/75gWS2
http://github.com/aaronchi/jrails/ -- Replace Prototype with jQuery in your Rails projects and still have access to all of the js helpers.
Another way to change model attribute names in error messages is to use the built in i18n(http://bit.ly/4MA76k). Thanks @joshkalderimis
If you use subdomains in your app for accounts create a cucumber step like this for your tests: http://gist.github.com/249107
You can change the names of your model's attributes when showing error messages to your users by doing this: http://gist.github.com/248335
Memoize a method to cache computed results if that method will be used multiple times during one request. http://gist.github.com/247370
save_and_open_page can help you find problems with your cucumber steps. I like to wrap it in a step def: http://gist.github.com/246501
If you are like me you probably spend a lot of time in your Rails console. Make sure you use ~/.irbrc. Small ex: http://is.gd/57wFw
Clarification for the last point: *Rarely do I ever want to pull collections without a specific order.
Give your models default ordering by using default_scope :order => "column". Rarely do I ever want to pull collections ordered by id.
Keep production logs from all of your servers in one place with MongoDB. http://github.com/peburrows/mongo_db_logger
Use hirb (http://github.com/cldwalker/hirb/) to format your irb/console output. Make sure you use your .irbrc to initialize hirb.
http://yfrog.com/4fjj2p Try organizing your cucumber features into user roles. I like to use admin_user, anonymous and default_user.
Try to create named_scopes instead of model methods whenever possible. You will thank yourself later, I promise. Doc: http://bit.ly/5kEVNT

Alan Maciel @alan_maciel_s
23 Followers 422 Following I'm a software writer. ᕕ( ᐛ )ᕗ Symmathesy as a way of life, Kobayashi Maru experiment subject looking to transcend through the void.
Rubyroid Labs @RubyroidLabs
538 Followers 2K Following We are #RubyonRails, #ReactNative highly-acclaimed experts, specializing in #webdevelopment, #ecommercedevelopment #mobiledevelopment & related services.
Minqi Pan @psvr
726 Followers 1K Following Hacker since 2003. Ten years of industry experience in #fintech. Former engineer of @alipay. Speaker of @railsconf and @rubyconf. @nodejs Collaborators Emeriti.
Neha Suwal @NSuwal
20 Followers 65 Following
Dusty Sorenson @D3_MRecall
6 Followers 97 Following
Clau @uztzu87
454 Followers 1K Following SW developer,animal lover, techno dancer, traveller, avid reader
Matthew Erhard @merhard13
12 Followers 42 Following
praaveen @vrpraaveen
43 Followers 175 Following
RoR Factory @rorfactory
57 Followers 394 Following Rails developer, RoR developer, Github, Heroku, AWS, Ruby on Rails
Naim Rajib @naimrajib
117 Followers 556 Following Software engineer, polyglot developer, love parallelism in code, table tennis lover, dad of my son.
MARC BLUEMNER @BLUEMNER
111 Followers 901 Following Im a punkrocker, religious, fullstack rails / nodejs / Go dev & worklow optimizer agile coach and devops freak
rubydaily.org @rubydailyorg
784 Followers 229 Following Everyday news from (and about) ruby community and development.
Francis J Kang @kanja01
54 Followers 609 Following
张林杰 @zhanglinjie412
1 Followers 107 Following
Layer7 Labs @Layer7Labs
41 Followers 189 Following Networking R&D, Design and Analysis, Infra Management, Security Company with a global presence.
Prem Regmi @cold_austin
12 Followers 88 Following
Chandra @cmthakur1986
251 Followers 519 Following Current: Head of Engineering @petsvivo Previous: Director of CloudOps @KUDOway More: Software Architect Entrepreneur Design Thinker Ruby Developer
WladFrischKäse @frrischkaese
1K Followers 2K Following твиттер это кринж, не стоит бомбить от моих шуток ;)
Egor Gorokhovtsev @egorgo
13 Followers 92 Following
Rahul Patil @rah2387l
24 Followers 129 Following Rahul one of ROR Devloper...! InTentioN more important dan implementation.
hualeilee @hualeilee
28 Followers 357 Following
kapil raj nakhwa @kapilnakhwa
456 Followers 677 Following Software craftsman, Current : rubydogs, @gurzu_inc, previously : @jyaasa, @thecloudfactory, @vianetofficial
kxhitiz ★ @kxhitiz
322 Followers 508 Following wannabe entrepreneur, tech enthusiast and a music lover
Glissade Group @GlissadeGroup
141 Followers 1K Following We design, develop, consult, create and integrate technology solutions.
Deepak Lamichhane @depakl
162 Followers 382 Following Ruby, Python, AWS, Fullstack, Machine Learning
Shyam Krishna Khadka @shyamkkhadka
71 Followers 152 Following Telecom Engineer by profession. Loves the field of Web development, Ruby on Rails, Computer Networks,Internet, Information and Communication Technologies
übernetics @ubernetics
42 Followers 275 Following we are an agile software development firm, TDD, Ruby on Rails specialists, mobile software development (ios and android devices).
julene steinmetz @julenecisteinme
37 Followers 401 Following
Sadiksha Gautam @sadikshagautam
282 Followers 473 Following Ruby on Rails, TDD enthusiast, Listens to Beatles, RailsGirls coach, Java beginner, Traveler beginner
Jawad Rashid @jawadrashid
587 Followers 2K Following Data Scientist, & Software Engineer at @nDataConsulting with interests in YouTube content creation, and Game Development. Connect with me to discuss anything
afalone @afalone
9 Followers 94 Following
chokerallo @chokerallo
319 Followers 2K Following
Grant Jurgeneit @jurgeneit
672 Followers 3K Following A passion for tourism @Checkfront and SaaS based collaborative technologies.