Sample app gets a quick bump

Courtenay : April 14th, 2007

Trevor has renamed the Image model to Asset to avoid “image_path” namespace conflicts. Also, Dan Quellhorst caught a security issue in the default “user.to_xml” that was showing the passwords. Install instructions were culled from the various comments and moved to README.

Finally, I’ve tagged version 3 as stable, and we’ll backport any critical bugs to this branch, but no new features, so you can safely use it with piston. We’ll create any schema changes as new migrations in stable branch (it’s up to you to fit them to your project).

Trunk will continue to be developed and migrations will not be back-compatible; that is, if we change the user or asset tables, we won’t create new migrations. As we get enough features to warrant a release, it’ll be tagged.

You can download tarballs or view the sourcecode online at our old-school-style site,

http://sample.caboo.se/

8 Responses to “Sample app gets a quick bump”

  1. Matthijs Langenberg Says:

    I think a sample app like this is way overrated, in the end it’s just going to get in your way. Be careful, it’s bloated before you know it.

  2. Fortuity Says:

    You’ve got a discussion forum for the Sample App at http://forum.caboo.se/ but right now clicking “Signup” results in “Beast System Error”.

    – Fortuity

  3. Fortuity Says:

    I wonder about the substitution of the spec directory for the test directory. I had to create the test directory to get “script/generate scaffold_resource” to run without a hiccup. It complained “No such file or directory - …/test/fixtures/…” I guess you want to encourage use of rspec as a best practice (me, I’m new to it). Just wanted to point out this rough edge.

    – Fortuity

  4. court3nay Says:

    use script/generate rspec_resource instead

  5. Jeremy Pinnix Says:

    I disagree with Matthijs. There are tons of people just starting with Rails who could benefit from seeing best practices.

    Keep up the great work Courtenay!

  6. Dondi Says:

    Thanks for the great resource court3nay. It is very helpful for a newbie like me.

    Is there some special process for using the YUI CSS grid features? Specifically, I am trying to place elements in the sidebar using:

     <div id="sidebar">
          My Sidebar Entry
     </div>
    

    But, nothing gets displayed.

    I downloaded the stylesheet from the URL in the stylesheet link (http://yui.yahooapis.com/2.2.0/build/reset-fonts-grids/reset-fonts-grids.css) to try and figure it out. However, I discovered that the file contains no CSS coding for “sidebar”.

    Am I missing something here? Thanks again,

    Dondi.

  7. court3nay Says:
    <% content_for :sidebar do %>
       your sidebar text here
    <% end %>
    
  8. Dondi Says:

    Thanks court3nay! Is there a general guide to using the YUI styles within a Rails app? Or is it as simple as substituting the desired id for ‘sidebar’ in the eRb fragment you posted above?

Sorry, comments are closed for this article.