if user provide tag name with tow words i.e spaces in between then acts_as_taggable consider it as sinlge tag if user provide tag name with commas in between then acts_as_taggable consider it as two different tags. It ingnores period and considers it as part of tag name.
The error can be in the generating proper path for URL. Hope this helps Naveen Joshi RoR Consultant, http://www.linkedin.com/in/naveenjoshi On 9/18/07, J.A. Obsideo <[EMAIL PROTECTED]> wrote: > > Hello SDRuby! > > Can you please help me? > > I'm extremely new at programming RoR (and programming in general) but > managed to get my first website developed(somewhat). It has been an > adventure and I enjoy learning and applying RoR. > > However, the plugin known as "acts_as_taggable_on_steroids" is handling > characters such as commas, spaces and periods not too politely. Is anyone > familiar with this plugin? > > Here is the error: > > ===================== > > ActionController::RoutingError in User_photos#show > > Showing *app/views/user_photos/show.rhtml* where line #14 raised: > > user_tag_url failed to generate from {:controller=>"user_tags", > :action=>"show", :user_id=>"2", :id=>"test."}, expected: > {:controller=>"user_tags", :action=>"show"}, diff: {:user_id=>"2", > :id=>"test."} > > > Extracted source (around line #14): > > 11: > 12: <p>Tags: > 13: <% @photo.tags.each do |tag| %> > 14: <%= link_to > > tag.name, user_tag_path(@ > photo.user, tag.name)%> > 15: <% end %> > 16: </p> > 17: > > ==================== > > How do I get around this error? I can "warn" the users not to use such > characters but thats not using common sense and plus people tend to break > rules anyway. > > Any help is appreciated! > > Jon > > > > _______________________________________________ > Sdruby mailing list > [email protected] > http://lists.sdruby.com/mailman/listinfo/sdruby > > -- Naveen Joshi RoR Consultant http://www.linkedin.com/in/naveenjoshi
_______________________________________________ Sdruby mailing list [email protected] http://lists.sdruby.com/mailman/listinfo/sdruby
