RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

jekyll-planet gem - Add Articles, Blogs to Your Site via Web Feeds (and Planet Pluto)

Hello, the jekyll-planet gem lets you generate Jekyll posts for your static site using the Planet Pluto machinery. Add articles or blog posts syndicated via web feed to your site in three steps: Step 1: Use a Planet Pluto configuration e.g. planet.ini to build your local planet.db SQLite feed cache. Step 2: Generate planet posts for Jekyll (from the planet.db cache) using the jekyll-planet Ruby script. Step 3: Use Jekyll as usual to build your site. That’s it. Happy Planet. Cheers.

Rails Fundamentals: Introducing Strong Parameters

One of Rails’ most visible historical protections against malicious data corruption involved using the attr_accessible method within a model to identify which model attributes could be passed into methods like new and update_attributes for mass assignment. This changed with Rails 4, thanks to a new approach for managing mass assignment behavior. Known as strong parameters, the task of defining which parameters are available for mass assignment has been moved out of the model and into the controllers, allowing developers to define mass assignment behavior according to action. In this tutorial, I’ll introduce you to strong parameters, and include several usage examples.

Loading older posts