|
Advanced Active Record in Rails 4
|
Last Update 2014/7/28 12:57
|
Category
Programming
Ruby
|
Description
In this chapter from The Rails 4 Way, 3rd Edition, Obie Fernandez and Kevin Faustino wrap up their comprehensive coverage of Active Record by reviewing callbacks, single-table inheritance (STI), and polymorphic models. They also review a little bit of information about metaprogramming and Ruby domain-specific languages (DSLs) as they relate to Active Record.
|
Hits: 169
|
Turbocharge Ruby on Rails with ActiveScaffold
|
Last Update 2007/6/15 9:47
|
Category
Programming
Platforms
Web Client
:
Programming
Tools
:
Programming
User Interface / UX User Experience
:
Programming
Ruby
|
Description
Writing a Web-based data entry UI for a complex application is never fun and is often downright tedious. One key attribute for a good user interface is consistency, but it still takes a knowledgeable and diligent development team to create the Web pages that follow through on that design. Like all other Web application frameworks, Ruby on Rails has this same problem. However the dynamic nature of the Ruby language provides for a solution: ActiveScaffold. ActiveScaffold is a plugin for Ruby on Rails (also known as Rails) that provides dynamic model-based view generation. Instead of having to create pages by hand that display your models, ActiveScaffold will introspect your ActiveRecord models and dynamically generate a CRUD (create, read, update, delete) user interface for managing those objects. This article is based on the latest currently available versions (as of this writing) of ActiveScaffold, Ruby, and Rails. Also, this article assumes that you are familiar with Ruby on Rails and are using Linux® or Mac OS X. Windows® users should modify any commands given to suit their own environment (for example, adding 'ruby' to the start of script commands).
|
Hits: 108
|
|
|
|