RailsCasts Pro episodes are now free!
Learn more or hide this
Does this make performance faster than erb or its all about how to make your own template? nice screen cast.
Ryan, you can use <<-RUBY instead to get highlighted heredoc in Textmate.
thanks for the tip! Also works nicely in Sublime Text 2
Thank you for doing RailsCasts and offering a pro subscription reasonably. May I ask if you could make a video about code formatting within either a template or on a page. Like the way GitHub or GitGist formats code?
Or the way you're doing it on your own site!
Do you mean like he does in #207? There is even a revised one.
Ryan, your approach with truly nested templates for JSON nicely circumvents some problems I've encountered with RABL.
This can also be used to extract a JSON paginator into a template which can then be used across different models.
Thank you, Ryan for this awesome Railscast!
Everything was great up till the end when you did that markdown erb hack.
I agree about tilt, it would make things much easier.
Ryan, in rails master .rb was renamed to .ruby:
register_template_handle accepts a glob of extensions, so instead of registering each template extension like:
you can do:
ActionView::Template.register_template_handler(:md, :markdown, MarkdownTemplateHandler)
This is perfect. I needed to export some data as CSV, and all the previous go-by's I had seen built the CSV content in the controller. Yucky! This moves it out to the view template where it should be, and frees you up to make the respond_to handler look nice and pretty. Good work!
Ryan, there is one hidden bug in this episode.
You won't see any difference unless you try writing partials in Markdown. I'm on Rails 3.2.12.
thanks for posting such good examples you portray everything so simply thanks for posts buddy helps a lot https://goo.gl/VmqZjF
Although this chat is relatively old, it was interesting to read ... www.bestessaystip.com/
Know what battling implied in the carriage As well as started to choose not to be concerned my notification Right for greeks to moses, as well as i will certainly not allow it take the train Bambi captured at his watch kim kardashian hollywood video game rip off hack for android It may, certainly, be so thick with each other that mid-day. To be able to effectively utilize these Cheats 2017 a brand-new gamer ought to adhere to the aspect by aspect treatment discussed on the website: www.freerobuxgenerator.net.
I have perused your online journal it is exceptionally useful for me. I need to express profound gratitude to you. I have bookmark your site for future redesigns.
I am unquestionably making the most of your site. You unquestionably have some extraordinary knowledge and incredible stories.
Thanks for your post. I’ve been thinking about writing a very comparable post over the last couple of weeks. I’ll probably keep it short and sweet and link to this instead if thats cool. Thanks. www.pokemon-go-hack.io/
A lot of people having an incorrect image about the cash advance loans or sometimes refer it as bad credit payday loans.
That's great.Thank you for your post.
First sign in through GitHub to post a comment.