similar to: Ransack, acts-as-taggable-on and checkboxes in search form

Displaying 20 results from an estimated 800 matches similar to: "Ransack, acts-as-taggable-on and checkboxes in search form"

2012 Sep 04
3
Thinking Sphinx and Ransack in the same application?
I have Ransack set up to do simple attribute-based search in my application. Now, I''m trying to add TS to the app to enable full-text searching. Trouble is, both of these define a Model#search method. Has anyone here ever tried this combination? Is there a way to rename the search method on either of these? Thanks in advance, Walter -- You received this message because you are
2011 Mar 15
1
Acts as taggable on ( tag ownership question )
From the acts as taggable doc I seeTag Ownership Tags can have owners: class User < ActiveRecord::Base acts_as_tagger end class Photo < ActiveRecord::Base acts_as_taggable_on :locations end @some_user.tag(@some_photo, :with => "paris, normandy", :on => :locations) @some_user.owned_taggings @some_user.owned_tags
2006 Apr 26
0
acts as taggable gem vs plugin
I''m currently using the acts_as_taggable gem; are there any advantages to switching to the plugin? martin
2008 Feb 26
1
problem with posting with acts as taggable on steroids
hi all i''m trying to have a post with tags included but i''m getting undefined method `tag_with'' i''ve already added acts_as_taggable to the model and on the controller the code for creating the post is: def create @post = Post.new(params[:post]) @post.tag_with(params[:tag_list]) @post.user = current_user if @post.save redirect_to
2008 Dec 11
1
help needed regaring Acts As Taggable On Steroids
Hello, In my rails application, I have a book model. I want to add tags. For that I have installed acts_as_taggable_on_steroids from this link http://agilewebdevelopment.com/plugins/acts_as_taggable_on_steroids and do as the readme file. This is my Model : class Book < ActiveRecord::Base acts_as_taggable end Here is my ApplicationHelper : module
2011 Nov 20
3
Use Ransack with radio buttons for boolean values
Hello I''m trying to search for active and non active users. These radio buttons work just fine except that it didn''t reselect itself after the form has been submitted. So, what should I do to ensure it will be selected just like how my text field populated automatically after the form has been submitted? = search_form_for @q do |f| = f.radio_button :is_active_false, 1 =
2006 Aug 07
2
Getting an array of ids from form checkboxes?
Is it possible to set up a list of checkboxes so that the form parameters are given in an array (eg {"delete_list" => [3,6,7]}) ? At the moment I''m using <%= check_box_tag "delete_list[#{post.id}]" %> ...which gives parameters looking like {"delete_list" => {"3" => "1", "6" => "1",
2006 Jul 11
4
checkboxes with a has_many :through relation
All, I''m populating a view with checkboxes in a list. I want to be able to assign to my has_many relationship using the post values of these checkboxes. Essentially, I want to populate the relationship table which will create the correct join values in my model. Here is my check_box_tag code: <%= check_box_tag("@current_job[target_list_ids][]",
2006 Dec 27
0
HABTM Checkboxes - Adding/Updating Users to a Project
Hello all, I''m trying to create a HABTM checkbox action that adds/updates ''users'' to a ''project''. I have the following laid out. --------------------- TABLES --------------------- create_table "assignments", :id => false, :force => true do |t| t.column "project_id", :integer, :default => 0, :null => false
2008 Jan 20
2
Which taggable library do people use?
I''d like to add taggability to a model in the site I''m working on, and I wanted to get an idea of what people are using. I keep seeing that acts_as_taggable is deprecated, so I tried the acts_as_taggable_on_steroids. I also tried be_taggable. In any case, I figured I''d see what people use. thanks. -corey -- http://www.coreyhaines.com The Internet''s Premiere
2006 Jul 04
1
Has_many :through with checkboxes?
Just when I started getting the hang of has_and_belongs_to_many relationships, I realize that I should probably convert several of my app''s joins to has_many :through type relationships. One example, pairing users with categories via subscriptions, where each user can be the "owner" of a category, has given me particular trouble when I try to update a user''s
2011 May 30
5
rails habtm checkboxes with jquerymobile
Hi guys, I have a habtm association working properly. My application consists of both a desktop and a mobile version. My mobile version is made with jquerymobile and I would like my checkboxes in the edit form to look like the checkboxes shown in http://jquerymobile.com/demos/1.0a4.1/#docs/forms/forms-checkboxes.html. My desktop code is the following: <%= check_box_tag
2008 Dec 09
4
HABTM checkboxes insert but don't delete
I have a problem related with the HABTM relationships with checkboxes. I''ve got a profile and a service model, both related with has_and_belongs_to_many. The problem is that i can insert new data in the profiles_services table, however, i cant delete already existing data. What could be the problem? --~--~---------~--~----~------------~-------~--~----~ You received this message
2006 Jul 14
2
multiple options & checkboxes
Hello, I''m trying to implement a checkbox option function, but I''m having a problem in visualizing how it needs to be implemented. Let me explain. I have a model (User) and another model (Category). I want the user to be able to select multiple categories in the form of checkboxes and have this information stored in the db. User habtm Category and Category habtm User But
2008 Jan 18
0
Update All using Checkboxes
So I have a list of jobs which I show like this. (cleaned up..) _list.rhtml <table> <% for job in @jobs %> <tr><td><%= job.name %></td></tr> <% end %> I want checkboxes next to each and every job name and a button or link somewhere else on the page to "delete selected", "publish selected" , and "unpublish selected"
2009 Apr 12
0
rails 2.3 nested forms with has_many through checkboxes
I was wondering if anyone knew of a way to combine the new nested forms in rails 2.3 with a has_many through relationship via checkboxes. Basically I have a page model, a page_category model and a category_items join table. Pages have many page categories through category items. The category_items table is polymorphic so i can use it for other models who need categories (maybe this is
2008 Jul 12
4
Act as Taggable with Rails 2.0
I''ve posted a different question just before -- but before I can try and get a better idea of my error message, I was trying to start my application and ran into other problems. My application was developed last year in rails 1.2.3. I since upgraded my computer and have the latest version of rails. When I tried to star the application I got the following error message:
2006 Aug 17
6
Rails and Checkboxes
Hi I''m having a really hard time trying to get a specific form in RoR to work. I''m trying to build a really simple page which lets the user make a pizza by setting check boxes. The choose their toppings, click submit and the form does a callback and shows them how much it will cost to have a pizza with those toppings on. At the moment I have the following: View: <%=
2006 Feb 22
8
filtering "tags" via checkboxes - HABTM
First post/newbie post... bear with me. What I''m trying to achive (music site): A system containing tracks and moods with a HABTM relationship. I''ve got all that set up and functioning in the admin environment - i.e. admins can apply a variety of moods to a particular track via a series of checkboxes. Join table works just fine. I''m currently stuck on allowing
2006 Jul 03
9
checkboxes
in the mean time i am using a checkbox like this : <input type="checkbox" name="var[car]" <%= var.car ? ''checked'' : '''' unless @var == nil %> /> but i am sure there is something better than this in rails like <%= checkbox_tag ''var'', ''car'', :checked => true %> but this is not