Pankaj Bagwan
Pankaj Bagwan
~1 min read

Categories

Tags

I was working on project when I bumped into a new feature, rather an old one; I don’t care although, that we can render partial without writing partial or locals. Check it out how?
before

render :partial => ''students/notice_board'', :locals => { :note =>@ note, :show_title => true}    

this can be rewritten as:

render ''students/notice_board'', :note => @note, :show_title => true    

and all those thing will be working as is as before. Pamper your hands, try this.

Three cheers.


About The Author

I am Pankaj Baagwan, a System Design Architect. A Computer Scientist by heart, process enthusiast, and open source author/contributor/writer. Advocates Karma. Love working with cutting edge, fascinating, open source technologies.

  • To consult Pankaj Bagwan on System Design, Cyber Security and Application Development, SEO and SMO, please reach out at me[at]bagwanpankaj[dot]com

  • For promotion/advertisement of your services and products on this blog, please reach out at me[at]bagwanpankaj[dot]com

Stay tuned <3. Signing off for RAAM