|
Is there a acts as taggable solution out there for merb users already?
Started by gregf on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Maybe you could get some more information by rephrasing the question? Something like ... .
I did find this which at least shows some interest, but it's a few months old now with no apparent progress .
Looks like the answer to your question as asked is "No" .
|
|
I'm trying to get tags working in my rails application and want to use acts_as_taggable. Firstly I followed the instructions I found in Rails Recipies (a free sample bit online) that used the acts_as_taggable plugin. However, I then found this site which...
Started by robintw on
, 6 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The result of the gem query -l -n acts_as_taggable lists acts_as_taggable I try to require it from the console is:
MissingSourceFile: no such file to load -- acts_as_taggable try acts_as_taggable_....
First avenue to explore.
|
|
I am doing a very simple search on my DB using acts_as_ferret. I put this in my "Venue" model:
acts_as_ferret :fields => [:name, :city]
And this is in my controller search action:
@t = Venue.find_by_contents(params[:search]+'~')
and then I just render...
Started by Tony on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I think the problem might be that "the" is defined... .
You can watch the Railscast about it in order to learn more .
I recommend switching over to another searching plugin like Thinking Sphinx .
Yes, Ferret has been very well known for corrupting indexes .
|
Ask your Facebook Friends
|
I have a rails app I'm trying to set up with sortable lists using the acts_as_list plugin. The position field in the db is getting updated, but when the page is rendered, the order is not considered. I'm looking for some help, I guess.
Here are my models...
Started by CJ on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The final version:
class QuestionMembership < ActiveRecord....
With Rails 2.3 you can set a default scope to always order by position:
acts_as_list is different than that of acts_as_list , which decides what to scope the list to.
On my models.
|
|
I have a image button thats acts as a form submit button:
<a href="#" onClick="submitComment('+[id]+'); return false;"><img class="submitcommentimg" id="submitcommentimg<?php echo $id; ?>" src="/images/check.png" alt="Comment!" border="...
Started by ian on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
This will act as a submit button.
Image" src="/images/check.png" alt="Comment!"> instead.
|
|
I just installed acts_as_taggable_on plugin and I'm trying to do
@products = Product.find(:all, :include => [:points, :tags], :conditions => '...', :tags => 'tag1, tag2')
As you can see I would like to use find() method with 2 other models (Product...
Started by xpepermint on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Why don't you just merge the results?
@results = [] %W(Product Point Tag).each do |model| @results += model.constantize.find(:all, :include => [:points, :tags], :conditions => '...', :tags => 'tag1, tag2') end
I think you're asking how to use... .
|
|
Hi, I have a relatively simple one-to-many relationship and use acts_as_tree to get it organized in the view. It kinda looks like this:
Root
|_Product 1 |_Product 2 |_Category 1.1 |_Product 3 |_Product 4 |_Category 1.1.1 |_Product 5
The way I set it up...
Started by val_to_many on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Rails used to have acts _ as _ nested.
A multitude of separate database lookups to compile the list) .
|
|
I am trying to figure out a graceful way to "draw" out an arbitrary tree structure, defined using acts_as_tree. My ultimate goal is to convert the parent/child relationships into a nested hash that can be converted into a Yaml file.
example tree:
root...
Started by Derek P. on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Set but I think it should be possible to modify it in order to work with acts_as_tree ).
|
|
Hi,
I installed Sphinx and Thinking Sphinx for ruby on rails 2.3.2.
When I search without conditions search works ok. Now, what I'd like to do is filter by tags, so, as I'm using the acts_as_taggable_on plugin, my Announcement model looks like this:
class...
Started by Brian Roisentul on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
With acts_as_taggable_on plug-in you don't before you rebuild index:
class Announcement < ActiveRecord::Base acts_as_taggable_on :tags.
Only have to put index definition below your associations.
|
|
I'm using Intridea's Acts as Readable Rails plugin for a messaging system I'm currently building. I've defined my message class accordingly:
class Post < ActiveRecord::Base acts-as-readable end
And everything seems to be working according to plan, ...
Started by Bryan Woods on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The following will work
<%= Post.find_unread_by(current_user).size %>
or
<%= Post.find_unread_by(current_user).length %>
However if you check your development.log you should see that it gets the unread count by
Retrieving all the posts Retrieving... .
|