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
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
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
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
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
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
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
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
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%
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
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
11 matches
Mail list logo