Coderwall
Ruby Python JavaScript Front-End Tools iOS
More Tips
Ruby Python JavaScript Front-End Tools iOS PHP Android .NET Java Jobs
Jobs
Sign In or Up
Last Updated: February 25, 2016
·
809
· lexmag

Keep your Rails views DRY by using `render` with block

#ruby
#rails
#dry

https://gist.github.com/3201853

#ruby
#rails
#dry

Written by Aleksey Magusev

Say Thanks
Respond

Related protips

Dynamic RSpec Tests

6.874K
1

Share RSpec examples that make multiple requests

3.586K
0

DRY up controllers when using acts_as_api - custom rails responder

1.471K
0

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Ruby Authors
projectcleverweb
291.1K
#ruby
#javascript
#css
danielwestendorf
165.1K
#ruby
#Javascript
#CoffeeScript
mcansky
141.1K
#ruby
#JavaScript
#Shell
knoopx
113.4K
#ruby
#JavaScript
#CoffeeScript
stevennunez
100.9K
#ruby
#JavaScript
#CoffeeScript
Related Tags
#ruby
#rails
#dry
Sponsored by
#native_company#
#native_desc#
#native_cta#
Filed Under

Ruby Development Tips
Ruby on Rails Development Tips
Awesome Job
See All Jobs

Post a job for only $299
Thanks to our sponsor
Sponsored by #native_company# — Learn More
#native_title# #native_desc#
#native_cta#
@coderwall
APM product comparisons Contact Privacy Terms

Copyright 2025

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.