Latest Blog Activity From The Decider

The Decider said over 6 years ago permalink Comment? (0)
Tagged: rails tagging

Tagging

First of all I’m not so sure tagging is useful. This is more of an experiment than anything. When I use them, say in flickr, I tend to just browse around. Maybe that’s all they’re good for…

Can google search them?
How do I implement them into my sitemap?

I suppose I should add the ability to comment…

I’m using acts_as_taggable plugin. One item that makes your form much easier to code is a simple model alias alias tag_list= tag_with Now you can just use this in your form.

<label for="blog_tag_list">Tags</label>
<%= text_field 'blog', 'tag_list' %>

This also saves work in the controller since you just use your normal scaffold code to create and update

The Decider said over 6 years ago permalink Comment? (0)
Tagged: todo blog

Comments added

With incremental zest I have added commenting ability. “Will they come?” Although, I don’t advertise you can use textile to do the markup.

The Decider said over 6 years ago permalink Comment? (0)
Tagged: rails sitemap

Sitemap generation

Interesting article on having rails generate a sitemap. In the past I have used the google site map tool

One of the comments also noted a plugin

The Decider said over 6 years ago permalink Comment? (0)
Tagged: rails

Upgrading Rails to 1.2.x

Trying to upgrade to 1.2.1 but being very suspicious.

Lock your rails app to a particular version.

In config/environment.rb:

RAILS_GEM_VERSION = '1.1.6' unless defined? RAILS_GEM_VERSION

Thanks to Steven Bristol for this tip.

Tried the tip on one of my machines. render :partial_success :| script/server seems to run but rake test still uses the latest rails and therefore breaks horribly. I guess I’m not alone:

Mr. van doorn has trouble too.

update

My project was created in rails v1.0. It turns out you need to rake rails:update:configs to update the config/boot.rb file. After I did that then test methods respected the RAILS_GEM_VERSION = '1.1.6' in environment.rb

Thanks to my co-conspirator, Stephen Ryan with the hint.