{{{ Dude, I was googling for _”RIA and Rails”_ recently. Latest posts were dated 2007. Oh wait, there’s “one”:http://raibledesigns.com/rd/entry/groovy_rails_with_components_ria from 2008 basically stating *”Rails needs components”* – which is “nothing new to me”:http://nicksda.apotomo.de/2010/10/10-points-how-cells-improves-your-rails-architecture/. h3. What’s a RIA? A RIA nothing more than an acronym for Rich Internet Application. What’s that, again? * Usually that’s a… Continue reading Pragmatic Rails: Write RIAs, not websites!
Category: Rails 3
Pragmatic Rails: Let’s do AJAX-backed Sidebar Widgets right, Jim!
{{{ Days ago “I explained how to write a sidebar widget in Rails”:http://nicksda.apotomo.de/2010/11/lets-write-a-reusable-sidebar-component-in-rails-3/, using the view component framework “Cells”:http://github.com/apotonick/cells. This was fun. Clicking a tag leads to a page reload, where the _Recent posts_ list *displays items matching the tag*, only. It worked great, however, each click needs a real HTTP request and a reload… Continue reading Pragmatic Rails: Let’s do AJAX-backed Sidebar Widgets right, Jim!
Rails Misapprehensions: What the fuck is MVP?
{{{ People usually make me feel slightly embarassed when they ask things like *”How does Cells handle MVP?”* or, even better, *”Is there any MVP _implementation_ in Cells?”*. Frankly, *I don’t have a fucking clue about the _real_ differences between MVP and MVC*. In the past I usually deflected people’s attention by buying beers instead… Continue reading Rails Misapprehensions: What the fuck is MVP?
How Blueprint and Compass help Idiots making CSS layouts
{{{ It takes me at least 2 hours to get CSS make what I want – normally this is having *a two-column layout, pushing elements around and having decent margins between floating blocks*. My CSS-skills do suck hard, and I usually give up asking friends and colleagues for help. Luckily, I met Wynn Netherland and… Continue reading How Blueprint and Compass help Idiots making CSS layouts
Rails Misapprehensions: Cells don’t break MVC
{{{ I was posting “a stupid simple example how Cells can be used”:http://nicksda.apotomo.de/2010/10/why-rails-controllers-need-a-double-render/ the other day. This controversial post got lots of great comments, thanks to all! While some just questioned Cells and its use, a few *comments really bashed the project* in a very aggressive way. *I like that.* The rudeness in some sequential… Continue reading Rails Misapprehensions: Cells don’t break MVC
Why Rails Controllers need a Double Render
{{{ In one of my last posts I “already discussed the improvements”:http://nicksda.apotomo.de/2010/10/10-points-how-cells-improves-your-rails-architecture/ Cells brings to your Rails app by *providing view components*. The last day I had an lively discussion about the concept of _partials_ or page fragments in Rails. *Partials make me feel sick.* People ordinarily use ’em in order to have “_DRY_ code”.… Continue reading Why Rails Controllers need a Double Render
Testing your Rails 3 Engine sitting in a Gem
or Making your Rails gem suck less When people refer to gems they usually think of new methods and classes popping up in your Ruby application as soon as you require the gem. However, with Rails 3, gems (and plugins) can also add behaviour, controllers, views, routes and all the other well-known pieces of Rails… Continue reading Testing your Rails 3 Engine sitting in a Gem
10 Points How Cells Improves your Rails Architecture
The Cells gem has been around in the Rails community for more than four years now. It has hundreds of pleased users who reported all kinds of use cases and how cells improved their apps. Here’s a compilation of the best practices. The challenge A shopping cart in a Rails app. Usually you’d take a… Continue reading 10 Points How Cells Improves your Rails Architecture
Cells for Rails 3 considered stable!
We finally pushed out the 3.4 gem of Cells, that’s view components for Rails. Check out the github repo. What’s Cells? If you’re sick of partial+helper botching, if your views are getting too complex or you ever dreamed of rendering actions within actions, Cells is for you! How can I get it? Just run $… Continue reading Cells for Rails 3 considered stable!
Getting a bloody Rails 3 generator running. And testing it.
Suck me sideways! It is said the generator layer in Rails 3 got really ohsom, flexible and whatever. I can now confirm “That’s true, somehow.” – nevertheless it took me years to figure out all the internals, conventions and places where to find documentation. What I wanted So here’s my requirement. I have a gem… Continue reading Getting a bloody Rails 3 generator running. And testing it.