hi,

that commond is working on console,but i want give the tag name from
html and it should take the tag paramaer and able to list out the tags
which r linking to article and announcements.For this w need to update
the controller of article and announcements and at the same time we
need to update the views like
index.html.erb,show.html.erb,new.html.erb,edit.html.erb files .

so here im getting stuck :
1)how to give the tag input from the html file (it works like search
for all the taggables items from database)
2)where exatly i need to change the controller and views

if u have any idea any sample application let me know

thanks
On Wed, Dec 3, 2008 at 4:08 PM, Thorsten Müller <[EMAIL PROTECTED]> wrote:
>
> We didn't use too much of the find functions, since
> we used sphinx full text search on the database and just
> included the tags in the sphinx index.
>
> the basic function to get articles with given tags:
>
> @article = Article.find_tagged_with("something")
>
> This takes a few options:
> Pass either a tag, string, or an array of strings or tags.
> :exclude - Find models that are not tagged with the given tags
> :match_all - Find models that match all of the given tags, not just
> one
> :conditions - A piece of SQL conditions to add to the query
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to