Technology Insights

RoR IDEs for Windows

Updated on 12/11/07 Here’s a breakdown of Ruby on Rails IDEs for Windows. Please feel free to add to this by adding a comment to this blog entry. I currently switch between RoRED (writing and navigating code) and Netbeans (GUI debugging) I broke it down in 2 types. Free vs. Commercial Free RoRED RoRED is…

Technology Insights

Basics of Layouts and Nested Layouts in Rails

Layout basics Here’s Duane Johnson’s concise explanation of how layouts generally work in Rails. To summarize this blog article, layouts occur at 2 levels (applciation-wide or controller-wide) by default: The entire Rails application (all views of all controllers) will use this layout: views/layouts/application.rhtml All views within a single controller will use this layout. For example,…

Technology Insights

Rants About Rails Database Migrations

Migrations as version control for databases When I first learned about Rails migration, I immediately thought that dropping down a revision would be something you would do often. In actuality, Rails migrations is more like a version control for databases. Since databases changes require modifications to both code and data, you cannot simply use a…

Technology Insights

Passing Parameters to Partials

Partial basics Some different things about passing parameters to partials Basics of passing parameters (i.e. locals) into partials – Why are parameters for partials (locals) passed differently than params for urls?!? Don’t know, but basically use the locals hash in both the render call and use the name of the local in the partial itself.…

Technology Insights

Dynamic Styles with HTML, CSS, and Javascript

Styles can be dynamically changed in 4 ways: With Javascript (overrides all other styles)el = document.getElementById(‘pageBody’); el.style.backgroundColor = ‘red’; Inline styles (override both embedded and external styles)Inline styles are styles that are written directly in the tag on the document. Inline styles affect only the tag they are applied to. <a href=”” style=”font-size:91%;”> Embedded styles…