[Rails] Re: New actions on command

2011-09-02 Thread Leo M.
1. Nope. There's the main index: 0.0.0.0:3000/posts #which is placed in = /views/posts/index.html.erb and there's the tag action: 0.0.0.0:3000/posts/tag/TAG_NAME #which is placed in /views/posts/tag.html.erb 2. Nope. But I didn't get the right post neither before. Changing from

Re: [Rails] Re: New actions on command

2011-09-02 Thread Jim Ruther Nill
On Fri, Sep 2, 2011 at 6:15 PM, Leo M. li...@ruby-forum.com wrote: 1. Nope. There's the main index: 0.0.0.0:3000/posts #which is placed in = /views/posts/index.html.erb and there's the tag action: 0.0.0.0:3000/posts/tag/TAG_NAME #which is placed in /views/posts/tag.html.erb what

[Rails] Re: New actions on command

2011-09-02 Thread Leo M.
1. No, in index.html.erb there's just the standard template. in tag.html.erb I've tried to do several ways, none gives an error but none shows the tagged posts either. Right now I tried a simpler solution : a plain %@posts.each do |post| % %= post.tags.class % %= post.class % %end% where

Re: [Rails] Re: New actions on command

2011-09-02 Thread Jim Ruther Nill
On Fri, Sep 2, 2011 at 8:08 PM, Leo M. li...@ruby-forum.com wrote: 1. No, in index.html.erb there's just the standard template. in tag.html.erb I've tried to do several ways, none gives an error but none shows the tagged posts either. Right now I tried a simpler solution : a plain

[Rails] Re: New actions on command

2011-09-01 Thread Leo M.
I ultimately written the app from the beginning, this time including 'acts_as_taggable_on' from the beginning, and it works! I'm definitely sure that it depended to a name mismatch, since the Post model had already an attribute called :tags . Even by removing this attribute with a rails g

[Rails] Re: New actions on command

2011-09-01 Thread Leo M.
All right, I just need the last step to go. I've done everything correctly, so the index show a briefing of the post, and all the tags, which are correctly linked to a proper url, specifically : let's put I click on the tag aqua , the specified url shall be http://0.0.0.0:3000/posts/tag/aqua

Re: [Rails] Re: New actions on command

2011-09-01 Thread Jim Ruther Nill
On Thu, Sep 1, 2011 at 6:42 PM, Leo M. li...@ruby-forum.com wrote: All right, I just need the last step to go. I've done everything correctly, so the index show a briefing of the post, and all the tags, which are correctly linked to a proper url, specifically : let's put I click on the tag

[Rails] Re: New actions on command

2011-09-01 Thread Leo M.
I tried to do as you suggested but it doesn't show anything. I've tried also to figure out if it wasn't a nil object but it's not even this. For instance, on tag.html.erb : % @posts.each do |post| % %= post.title.class% %= post.tags% %end% it gives as result a blank page, it not even shows

Re: [Rails] Re: New actions on command

2011-09-01 Thread Jim Ruther Nill
On Fri, Sep 2, 2011 at 3:21 AM, Leo M. li...@ruby-forum.com wrote: I tried to do as you suggested but it doesn't show anything. I've tried also to figure out if it wasn't a nil object but it's not even this. For instance, on tag.html.erb : % @posts.each do |post| % %= post.title.class%

[Rails] Re: New actions on command

2011-08-31 Thread Leo M.
But it doesn't work on my app. I don't know why, I downloaded it and installed with bundle install, but still when I add to a certain model the string : acts_as_taggable I systematically obtain an error, so I was trying to avoid this by creating by myself the method. -- Posted via

Re: [Rails] Re: New actions on command

2011-08-31 Thread Jim Ruther Nill
On Wed, Aug 31, 2011 at 6:24 PM, Leo M. li...@ruby-forum.com wrote: But it doesn't work on my app. I don't know why, I downloaded it and installed with bundle install, but still when I add to a certain model the string : acts_as_taggable I systematically obtain an error, so I was trying to