What's New in Edge Rails #22

Week of May 21 - May 27, 2012

In addition to the features I've called out below, there's still plenty of internal tinkering going on with Rails 4.0. This week included some work on deep methods to manipulate hashes and removing a batch of dependencies on Pathname.

  • 43fa48e5 moves the root route to the top of the generated routes.rb file. I'm mildly surprised that this hasn't spawned another flame war.
  • As of 1ce4b5b3 and b02d14aa there is broader helper support for various HTML5 input types, including color, month, week, datetime, and datetime-local.
  • You can use the /rails/info/routes path in development to show the equivalent of rake routes in the browser starting with cb44e0fe.

Double Shot #887

Summer camping schedule is going to mean skipping a few days here and there. So it goes.

Double Shot #886

Happy anniversary to my wonderful wife. And to me, of course.

Double Shot #885

Soothing myself with nice code before looking at ugly tests.

  • GitHub Trends - Handy RSS feeds to keep track of top projects.
  • Bacon Ipsum - Another text generator for people tired of lorem ipsum.
  • SpahQL - A query language for Javascript objects - Make dealing with structured data on the client a bit easier.
  • Coda 2 - Looks like a spiffy upgrade to this all-in-one web coding IDE. Check out the iPad version Diet Coda too.
  • Gumby - A new responsive CSS framework.
  • Dark Patterns: User Interfaces Designed to Trick People - I think I've had clients who kept this site bookmarked.
  • wysihtml5 - HTML5 rich text editor that degrades to a textarea on older browsers.

What's New in Edge Rails #21

Week of May 14 - May 20, 2012

In addition to the code changes below, I want to mention the contributors to docrails, who are doing a great job of keeping the Guides up to date with the edge code. Check out their work at http://edgeguides.rubyonrails.org/.

  • 683fc4db changes :disable_with to data-disable-with in various tag helpers for consistency with other attributes handled by the unobtrusive JavaScript drivers. dd42e890 further tweaks this to use the :data => { :disable_with => ... } form of the API in examples.
  • With 3f352d04 Model.pluck supports SQL fragments (such as DISTINCT name as well as attribute names.
  • You can now tell Rails to pass templates through undisturbed by using the .raw extension, as of 8bea6072.
  • 446940c3 brings in helpers for the HTML5 time input tag.
  • Check the changelog update in 103ce300 for details about the deprecation of most dynamic finder methods in Active Record, and how to rewrite them in your code. No rush on this because they won't be gone until Rails 5.0, but it's good to stay up to date.

Double Shot #884

Aren't things supposed to slow down in the summer? No?

  • Authority - Authorization gem for Rails applications.
  • CarrierWave::Processing - Add-on image processors for CarrierWave, including image quality adjustment.
  • Batch IP Locator - Geocode and map multiple IP addresses at one time.
  • NSRails - Objective-C framework to talk to Rails objects, including REST API and synchronization.
  • Reset Firefox - easily fix most problems - Coming soon, a way to reset your profile without losing things like bookmarks and history.
  • Ore - Templated ruby project generator.

Double Shot #883

It's gonna be another very long day.

Double Shot #882

New staging server held hostage by bacteria. Bah.

  • lolcommits - Take a snapshot with your webcam every time you make a code commit. The rise of developer narcissism continues.
  • SASS vs. LESS - Long comparison of these two CSS preprocessors. SASS comes out on top, but both are good.
  • flotr2 - HTML 5 graphing library with lots of nifty examples.
  • Node.js Is Bad Ass Rock Star Tech - 5 minutes of poking fun at hipster rockstar programmers. "You are the reason science was set back a thousand years."
  • rspec-rails-uncommitted - Rake tasks to run specs for all uncommitted, unpushed, or unmerged files in your project.
  • Devise Async - Send Devise emails using Resque, Sidekiq, or DJ.
  • SourceNinja - Monitor your software to know when there are patches available to the bits you depend on.
  • SheetMapper - Connect spreadsheet rows to ruby objects.
  • Feeds - Get notifications from GitHub, Basecamp, Trello and other services in your Mac menu bar.

Double Shot #881

Wrote some good code yesterday, at the expense of not writing enough good emails.

Double Shot #880

Our Cub Scout Day Camp is blessed with an abundance of rangemasters this year.

What's New in Edge Rails #20

Week of May 7 - May 13, 2012

As usual, I'm only pulling out the things that look most interesting to developers using Rails; there's a great deal of work still happening on Rails 4.0 internals. This work is valuable and necessary, but it's the part of the iceberg that remains underwater for most Rails users.

Some time in the last week or two, by the way, Rails master passed 30,000 commits.

  • ceb1dcc3 adds a default humans.txt to new Rails projects.
  • b8f394f4 changes the behavior of Object#try to only use public methods of the target object.
  • ActiveRecord::Store allows you to specify the encoding for serialized attributes starting with 3c0bf043. This allows you to choose JSON, YAML, Marshal, or your own custom storage format.

Double Shot #879

Oh look, it's Monday again.

Double Shot #878

End of another week, yay.

Double Shot #877

Today: A few minutes of email nonsense, and then off to the woods for a work day. Time to get the council camp ready for summer.

Double Shot #876

Email bankruptcy is starting to seem like a viable alternative. Anyone in the market for some small Rails clients?

Double Shot #875

My Cub Scouts say they want to do more camping, fishing, whittling, and science. Gonna be a fun summer.

What's New in Edge Rails #19

Week of April 30 - May 6, 2012

Lots of code tinkering this week, but no huge new features. Here are a few highlights.

  • 5c1109a6 adds a -i option to the rails generator to skip building the index.html file that you always delete anyhow.
  • 16e7f2f tweaks the Inflector code so that 'police' no longer singularizes to 'polouse'.
  • ActiveRecord::Base#ids shows up in 93076168 - it's like pluck specifically for the primary key of the main table.
  • 07e5301e forces the first finder to default to primary key order across all database engines. 489166e1 does the same for last. If you want the old behavior of first you can use take(introduced in 1379375f).

Double Shot #874

What? Time for computers again instead of hikes and sleeping in a hammock? Oh well.

  • Five Common Rails Mistakes - Welll….good tips here, but I don't think Rails is a "one size fits all" system. Some things that are mistakes in large systems are just fine in small sites.
  • Opa - Statically typed platform that combines frontend code, backend code, and SQL into one unified framework.
  • Monadic - Monads for Ruby.
  • Brackets - Code editor for HTML/CSS/JS from Adobe. Written in web technologies itself, it opens as a desktop app but shows its own source code by default. Kinda nifty looking.
  • Monologue - "A simple blogging (Rails) engine". Yep, another one.
  • Precompile Assets Using a Git Hook - Another way to try to handle the slowness of the asset pipeline.
  • Dead simple ActiveRecord migrations without Rails - Yep, it's good to remember that you can use plenty of chunks of Rails even when you're not writing Rails apps.
  • RubyMotion Screencast - A free 50-minute primer from Pragmatic.
  • RubyMotion Samples - A collection of goodies on GitHub.

Double Shot #872

This is going to be another of those "ten pounds of stuff in a five pound sack" says.

subscribe via RSS