<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>{ height: 1%; } - Ruby on Rails and User Interface Design: Upcoming AjaxScaffold improvements</title>
    <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>CSS, UI Design, Ruby on Rails and cheese ... lots of cheese</description>
    <item>
      <title>Upcoming AjaxScaffold improvements</title>
      <description>&lt;p&gt;&lt;span style="background-color: #ff8; font-weight: bold; padding: 2px 5px;"&gt;AjaxScaffold has been deprecated in favor of &lt;a href="http://activescaffold.com"&gt;ActiveScaffold&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;I&amp;#8217;ve been listening to all the feedback from the 3.0 release and come to a simple conclusion: I screwed up. I got pretty wrapped up in some parts of 3.0 and neglected to think about how &amp;#8220;you guys&amp;#8221; would be able to bend generated scaffolds to your will.&lt;/p&gt;

&lt;p&gt;Case in point is my lame excuse for table data customization. Defaulting to show all the fields on a model is fine, but having the only easy option for customizing this be to defined &lt;strong&gt;some subset of model attributes&lt;/strong&gt; is just weak. What about associations? belong_to, has_many and so on. And what if I&amp;#8217;m doing single table inheritance?&lt;/p&gt;

&lt;p&gt;Speaking of has_many and belongs_to, how can I modify the generated scaffolds to be used for creating my has_many child objects?&lt;/p&gt;

&lt;p&gt;Fear not gentle reader (I&amp;#8217;ve been dieing to work in the phrase &amp;#8216;gentle reader&amp;#8217; into a post for a while now), I am currently working on a release that should make column customization much easier and more flexible. It also should make all that crusty code in &lt;em&gt;_column_headings&lt;/em&gt; and &lt;em&gt;_item&lt;/em&gt; a bit more &lt;strong&gt;readable&lt;/strong&gt;. I currently have all the code written for what will be 3.1 and am putting it through its paces on a couple demos for associations, specifically a demo with nested scaffolds (Which is also getting some &lt;span class="caps"&gt;CSS&lt;/span&gt; love to make it look less craptacular).&lt;/p&gt;

&lt;p&gt;I would expect everything to be released/written up in the next 48 hours.&lt;/p&gt;</description>
      <pubDate>Sun, 16 Apr 2006 20:36:55 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:7d3cdcab5ad217a0d48c9b8a5a6d2aa9</guid>
      <author>Richard White</author>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements</link>
      <category>rails</category>
      <category>ajaxscaffold</category>
      <trackback:ping>http://www.height1percent.com/articles/trackback/34</trackback:ping>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Richard White</title>
      <description>&lt;p&gt;Mike &amp;#38; Dean: I don&amp;#8217;t plan on adding any more features to the scaffold. I feel that 3.1 is exactly where I want to be and I&amp;#8217;d probably focus more on either releasing plugins or rolling out an ajax scaffold plugin. The additions to 3.1 (Dunno if you posted this before or after I released it) are mainly refactoring some of the parts of the code that imho were hard to grep and customize.&lt;/p&gt;</description>
      <pubDate>Tue, 18 Apr 2006 16:48:57 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-483</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Dean</title>
      <description>&lt;p&gt;I&amp;#8217;m with Mike on this one!   Although I won&amp;#8217;t go back to 2.0, I think 3.0 is pretty darn close to perfect! - I&amp;#8217;ve added a filter to those pages that I want (with a partial and about 4 lines of controller code), and think that now the best thing would be for more articles on how to extend the scaffold, not a bunch of more code on autogenerating features.&lt;/p&gt;</description>
      <pubDate>Tue, 18 Apr 2006 11:46:27 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-474</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Mike Ratliff</title>
      <description>&lt;p&gt;Richard, thanks for the reply and all the hard work on the this new release. I feel like I must make one last ditch effort to help on the exploding complexity front. Please forgive me if I seem out of line&amp;#8230;I am just trying to help! This time I would like to address everyone that is requesting features. STOP DOING IT! The name of this wonderful (at least in version 2) piece of code says it all&amp;#8230;&amp;#8217;scaffold&amp;#8217;. It should NOT be solving all your problems for you. It should be designed to get things up and running. Things have gotten way out of hand. I can&amp;#8217;t even come close to updating the code in it&amp;#8217;s current state. It also might bereasonable to ask if editing these 1-many relationships is really something that is best solved by this ajaxified solution. My personal test for using this over standard scaffold was &amp;#8216;simplicity of model&amp;#8217;. If it was a complicated model, why not just nav to a dedicated page? I realize that everyone has different needs an desires, but the things that are most successful are those that do one things very well and I for one was thrilled with version 2. I am currently looking for a way to downgrade to that version so I can keep on smiling about everything that it enabled me to do. :)&lt;/p&gt;</description>
      <pubDate>Tue, 18 Apr 2006 09:55:56 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-472</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Richard White</title>
      <description>&lt;p&gt;Slain: That should be fixed in 3.1&lt;/p&gt;</description>
      <pubDate>Tue, 18 Apr 2006 09:19:35 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-443</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by slain</title>
      <description>&lt;p&gt;To add loading indicator to page numbers:&lt;/p&gt;


	&lt;p&gt;In ajax_scaffold_helper.rb replace with this:
  def pagination_ajax_links(paginator, params, indicator_params)
    pagination_links_each(paginator, {}) do |n|
      link_to_remote n, 
           { :url =&amp;gt; params.merge(:page =&amp;gt; n ),
           :loading =&amp;gt; &amp;#8220;Element.show(&amp;#8217;#{loading_indicator_id(indicator_params)}&amp;#8217;);&amp;#8221;,
           :update =&amp;gt; scaffold_content_id(params) },
           { :href =&amp;gt; url_for(params.merge(:page =&amp;gt; n )) }
    end 
  end&lt;/p&gt;


	&lt;p&gt;In each _pagination_links.rhtml replace the line with:
   &amp;lt;%= pagination_ajax_links @paginator, pagination_params, indicator_params %&amp;gt;&lt;/p&gt;


	&lt;p&gt;and in your&lt;/p&gt;</description>
      <pubDate>Tue, 18 Apr 2006 03:11:51 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-471</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by ippa</title>
      <description>&lt;p&gt;hum, somebody ate my newlines, hopefully you can read my above text without straining your eyes too much ;)&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 19:42:32 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-468</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by ippa</title>
      <description>&lt;p&gt;I&amp;#8217;ve played some with your ajax_scaffold. First off, nice work.&lt;/p&gt;


	&lt;p&gt;Now onto my &amp;#8220;userstory&amp;#8221; ;) .. What made me skip ajax_scaffold when building a webadmin now was the fact that the scaffold is very hard to upgrade once you&amp;#8217;ve tailored it into your own special needs? Yes, maybe that&amp;#8217;s exaclty what scaffolds are about&amp;#8230; but with as many features as you have in ajax_scaffold it doesn&amp;#8217;t feel like &amp;#8220;throw away code&amp;#8221; anymore. (especially not after some hardwork modding)&lt;/p&gt;


	&lt;p&gt;Seems like others had the same experience when going from 2.0 to 3.0.. but I guess it&amp;#8217;s as true for 3.0.0 -&amp;gt; 3.x?&lt;/p&gt;


	&lt;p&gt;What can I muck around with (filewise) and what should I leave alone If I want to be able to upgrade to the next release?&lt;/p&gt;


	&lt;p&gt;Im about to build automatic dropdownboxes for belongs_to-IDs. relations into my admin since entering xxx_id by number isn&amp;#8217;t much fun.&lt;/p&gt;


	&lt;p&gt;As I got it, this is something you&amp;#8217;ve thought about too, is this planned for the 3.1-release? Or at all?&lt;/p&gt;


	&lt;p&gt;Thought of making a rails-engine out of this instead of a scaffold?  .. I think it could solve some of the extend-but-continue-to-upgrade-problems I&amp;#8217;ve mentioned.. but probably far from a magic bullet :).&lt;/p&gt;


	&lt;p&gt;Looking forward to check out 3.1 when it&amp;#8217;s released.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 19:41:28 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-467</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Richard White</title>
      <description>&lt;p&gt;Abdur-Rahman: Wonderful, hope it all goes well.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 16:10:36 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-77</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Richard White</title>
      <description>&lt;p&gt;Dean: The last comment to Mike could be addressed to you as well. Feel free to email me if you have any questions (or better yet put them on the forum). I plan to cherry pick from the questions I get for future articles.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 16:10:08 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-464</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Richard White</title>
      <description>&lt;p&gt;Mike: Yeah it was quite the dilemma in 3.0 as all future releases are. 2.0 was a very obvious thing for me since it grew out of a project I was working on (SlimTimer). The features in 3.0 are something a lot of people have asked for but I hadn&amp;#8217;t used in my own projects which is probably why it suffers from not being as obvious (also the fact that a lot of client side code was moved to the server side might make things a little more difficult to grep). I am going to be &lt;b&gt;very&lt;/b&gt; cautious and deliberate with any more features that might be added to the scaffold after this next release. It would take a groundswell of support for something, like quick search, for me to take the time to add it. I feel that the scaffold is 90% feature complete as far as the generic requirements most projects share. I&amp;#8217;d prefer to do writeups on how to bend scaffolds to do specific jobs than include extra features in the generator.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 16:09:15 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-463</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Richard White</title>
      <description>&lt;p&gt;Rich: Actually user stories are always very useful when trying to build something as generic as this. 1) Defining whether a column is sortable will be in 3.1, a default width will not be (though that would be easy to add, I don&amp;#8217;t want to add in too many features unless their is a groundswell of support for them) 2) Pagination is in there as of 3.0 3) I read this as something of a quick search to filter the list results&amp;#8230; this is probably the biggest unimplemented feature requested, but still no time table on it 4) No idea what you mean 5) Any interesting idea, I think this is something where I would prefer to do a writeup (or have someone submit one) rather than doing this out of the box since it is so project specific.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 16:06:10 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-462</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Abdur-Rahman</title>
      <description>&lt;p&gt;I am using your component as part of my application, if my client likes the demo on wensday, you can expect a well deserved donation from my part :)&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 15:02:06 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-417</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Dean</title>
      <description>&lt;p&gt;I have to agree with the other comments.  I had some fairly straightforward pages created with mods to 2.0&amp;#8230; I&amp;#8217;ve come pretty close to upgrading all those pages to 3.0, and although for the most part they are &amp;#8216;working&amp;#8217;, but I definately didn&amp;#8217;t have as clear of a sense on &amp;#8216;why&amp;#8217; I did what I did.   Keep up the great work.   So far Rails is the best part of what I&amp;#8217;m learning of Ruby and your ajax_scaffold is the best part of rails.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 12:50:33 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-460</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Mike Ratliff</title>
      <description>&lt;p&gt;It sounds like you are on the right track with these latest ideas.&lt;/p&gt;


	&lt;p&gt;What initially drew me to your work was how simple it was for me to get something up and running and then bend it to my specific needs overtime.&lt;/p&gt;


	&lt;p&gt;With the latest release(s) I feel a bit lost in the code that is generated and therefor hesitant to use it for fear that it will take me longer to unravel it when I need to. Remember that your generator has the work &amp;#8216;scaffold&amp;#8217; in it. By definition, it should be code that gets you moving, but is designed to be replaced overtime.&lt;/p&gt;


	&lt;p&gt;I know that all products fight with the dynamic tension of features and simplicity. I hope you will take this as one suggestion to err on the side of simplicity. I would be even more thrilled with your excellent work if you were to simply cut half of the bells and whistles.&lt;/p&gt;


	&lt;p&gt;Either way, I wish you the best of luck finding the right balance. Keep up the great work!&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 08:16:07 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-459</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Mirec</title>
      <description>&lt;p&gt;Who can catch up? Man, you are fast&amp;#8230; I did not have time to get use to new things in 3.0 and here it comes, another big feature in next 48 hours&amp;#8230;   a was just thinking about exactly those things to be added&amp;#8230; Excellent work&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 08:11:44 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-438</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by RIch</title>
      <description>&lt;p&gt;Great Richard. This is good stuff. I am working on incorporating some ajaxscaffold into a project I am working on. Things I am thinking of right now that would fit in well in the future -&lt;/p&gt;


	&lt;p&gt;1. The name of the columns coming from a database table that could store whether a column is sortable, a default width. We like this because we can create a web admin tool to customize almost all aspects of the product.
2. I don&amp;#8217;t know if your generator has pagination but that is something that we would need in the future. There are enough examples of that we can roll our own.
3. Filtering with edit boxes below the fields. I think I saw an example of this somehwere but it was incomplete. We have it in PHP now but need to cross it over.
4. Various master detail scenarios &amp;#8211; Most of these we will customize.
5. We are working on something to have an extra check field to select multiple rows for various db tasks (grouping, ordering and deleting). Don&amp;#8217;t know if there is an easy way to do this in java script or just have the multiple rows.&lt;/p&gt;


	&lt;p&gt;Great work on this and just wanted to point out how we envision extending it.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 02:03:13 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-413</link>
    </item>
    <item>
      <title>"Upcoming AjaxScaffold improvements" by Eden</title>
      <description>&lt;p&gt;Wow Richard, that sounds most excellent.  It may not be out in time for my next demo on Tuesday, but I can&amp;#8217;t wait to put 3.1 through its paces.&lt;/p&gt;</description>
      <pubDate>Mon, 17 Apr 2006 00:00:42 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:</guid>
      <link>http://www.height1percent.com/articles/2006/04/16/upcoming-ajaxscaffold-improvements#comment-412</link>
    </item>
  </channel>
</rss>
