The next version of Snippets is now available. Ruby on Rails 0.13 introduced a bunch of new problems to Snippets, mostly surrounding things where Snippets 0.2 was "fudging" it. I've cleared up a lot of the hacks, brought some of the code up to more modern standards, and solved tons of nagging issues. There's still a lot to be done, but my spare time has been extremely limited.
From the CHANGELOG:
Snippets 0.3
23 July 2005
---
* When you post a comment you go back to the right place now
* Compatible with Rails 0.13.1
* Nicer pagination URLs
* Updated some stuff to match a more modern Rails style
- Symbols instead of quoted attributes on sessions and params
- Some changes in rendering
- Single action for AJAX and non AJAX deleting
* Single tags now viewable via /tag .. means you can block /tags in robots.txt
* Fixed a hideous amount of routes related bugs, some introduced by Rails 0.13
* HTML is still a mess.. sorry!
* UTF-8 encoding specified in <head>.. should resolve some internationalization issues!
* A couple of very rudimentary tests to get the ball rolling.. full tests for Snippets 0.4!
* 101 other bugfixes and "why does it do that!??!?" fixes
To grab it, get snippets-0.3.tar.gz and then read the README, otherwise you won't get very far :-)
IMPORTANT UPDATE - July 28 - Bug found!
Just one bug found so far (bloody Routes upgrade!).. you need to go to app/helpers/application_helper.rb and go to the far bottom where the "tag_link" sub is, and change it to this:
def tag_link(tag)
link_to(tag.name, { :controller => "tag", :action => "show", :tag => tag.name, :page => nil, :user => @params[:user] })
end
Otherwise.. the "top tags" bar on the front page won't work. So, not a massive fatal error, but an annoying one for you! I will repackage this fix (and others, if they come) into a 0.31 release shortly.
Upgrading is just a case of putting the tar into your /snippets folder and untarring and ungzipping. If your Ruby path is not /usr/local/bin/ruby you will have some shebangs to change. I have made sure your environment.rb, database.yml, and snippets.yml will not be overwritten, by appending a tilde to their names. This is only a minor inconvenience for new users.
Thanks again for sharing the source!
Posted by: Jon at July 24, 2005 12:37 AMLooking for help with this project? I have some ideas and would like to contribute if you are interested.
scott
Posted by: Scott Walter at August 29, 2005 04:58 PMGetting an error on Show...
See this link:
http://www.talkcss.net/posts/show/1
Posted by: Sean at September 25, 2005 07:49 PMReturn to the homepage.
Privacy Policy