similar to: Category select list suggestions

Displaying 20 results from an estimated 60000 matches similar to: "Category select list suggestions"

2006 May 08
2
Queries with has_and_belongs_to_many relationship
I was able to create a has_and_belongs_to_many relationship for my app, but now I''m not too sure how to write queries for it. Basically, I have a table ''courses'' that has_and_belongs_to_many ''categories'' and vice versa So I''m trying to figure out how I would find only the courses that belong to a category that I specify. Let''s
2006 Dec 30
4
newbie question, "show items in selected city and category"
Hi, rails newbie needs help :) I have classified ads (cads) related with cities and categories: class Cad < ActiveRecord::Base has_and_belongs_to_many :categories has_and_belongs_to_many :cities end class Category < ActiveRecord::Base has_and_belongs_to_many :cads end class City < ActiveRecord::Base has_and_belongs_to_many :cads end I assume that user can act such
2006 Jun 19
10
Trying to delete from a unordered list using ajax
I have a controller method as such: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end (For the purpose of this exercise, category names are unique) I have the corresponding delete.rjs file: if @element_id page.remove :id => @element_id page.visual_effect :highlight,
2010 Oct 19
0
Ajax & Table Display Filtering based on Selected Option
My scenario: On a department''s products page (index.js.rjs), there is a table showing the products with their id, name, category. The view of this table is specified by a partial file called _index.html.erb. I''m going to add in a selection/option drop down menu above the table to show all the product categories. When the user selects a category from the drop down menu, Ajax
2008 Dec 25
5
One question about Dynamic Select Menus
Hi all, Merry X''mas first :-) I have "Product","Category","Subcategory" 3 Model, and when new "Product", I want to use "Dynamic Select Menus" just like Ryan mentioned in http://railscasts.com/episodes/88-dynamic-select-menus I have everything down. But when I visit the js file, I got following error Showing
2006 Jun 29
2
HABTM with multiple select list
Hello, I am very new to ruby and need to create my first HABTM with multiple select list.  I am having problems saving data in the middle(linking) table.  1. titles can have multiple categories  2. categories can have multiple titles Categories, titles and categories_titles tables are created.  ----- title_controller.rb--   def new     @title = Title.new     @categories =
2006 Apr 04
0
Anyone have a definitive list of Managereventsper category?
hm, I have to try that. I am using for third party control so the need to know all the events. ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Josh McAllister Sent: Tuesday, April 04, 2006 4:19 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Anyone have a
2006 Jul 26
1
How to create table entry with multiple related categories?
Perhaps I should create a table row to hold an array of category ID''s? There''s probably an easy standard way of doing this in RoR and I just can''t wrap my brain around a practical way to do this right off. Specifically... I have a table that contains my product category names and another table that contains my actual product names with other product specific
2005 Jan 21
2
Need help to transform data into co-occurence matix
Dear R experts, I have the data in the following fomat(from some kind of card sorting process) ID Category Card numbers 1 1 1,2,5 1 2 3,4 2 1 1,2 2 2 3 2 3 4,5 I want to transform this data into two co-occurence matrix (one for each ID) -- For ID 1 1 2 3 4 5 1 1 1 0 0 1 2 1 1 0 0 1 3 0 0 1 1 0 4 0 0 1 1 0 5 1
2006 Dec 15
1
How can I have two controllers use the same 'category' model if they aren't related?
Hi all, I have two controllers - "foods" and "receipes" which map to models. Each one will have multiple categories, but the categories are completely different for each one - they don''t share the same category. So they aren''t related at all. If I wanted to do this using resources, what is the best way to set this up? If I setup a categories controller and
2005 Dec 21
0
Category/subcategory CRUD
Hello there! This is my first post! ;) I''m starting on ruby on rails, so I have many doubts about it! I''m trying to create a system that uses categories/subcategories. I created a scaffold for a table that has the following fields: - id int(11) - name varchar(50) - keyname varchar(50) - visible enum(''0'',''1'') default ''0'' -
2006 Apr 28
1
undefined method `name'' for #<Category:0x3820f70>
All, I am having a bit of trouble with the error. I hava a product and category table and wanting to display the categories in a drop down list. Below is the error I get. Any suggestion on how I can fix this. undefined method `name'' for #<Category:0x3652448> 9: <select name="product[category_id]"> 10: <% @categories.each do |category| %> 11:
2008 Feb 02
3
sort notes by category (when category is stored in notes)
okay, breaks the relationship model but it''s a really simple data model so doesn''t need too much about it. here''s my structure, I have a notes model containing... note: name, date, category so each note will have it''s own, name, date and category (with some of the categories being the same, hence sort by...) now i could sort by category easier by having the
2006 Apr 04
1
Anyone have a definitive list of Manager eventsper category?
I don't think you can selectively receive events. I am also write an app using heavy manager actions, and I put the filters on my app. So far, I have not seen traffic from these events do a dent to my application/network performance. ________________________________ From: asterisk-users-bounces@lists.digium.com on behalf of Josh McAllister Sent: Tue 4/4/2006 2:59 PM To: Asterisk Users
2009 Oct 15
10
AJAX - how to have multiple select form sets implemented?
hi, there :) Consider a blogging application whereby a user is trying to add a new blog. He/she has to select a category. Upon selecting a category from a drop down box, a new sub categories drop down box will be created (hence an AJAX call). Got this implemented and it''s ok. Now, let''s assume that a given blog can have multiple categories (and subcategories). For example, a
2017 Jun 15
2
[CFI] Manually linking classes that have no inheritance link
Hi, I would like to propose extending the Control-Flow Integrity (CFI) mechanism in LLVM/Clang with a feature that allows users to explicitly link classes that have no inheritance link. Usually, if one class is used at locations in code where this class is not expected, this will create a CFI error at runtime, assuming the application is built with CFI enabled. However, in cases where the user
2006 Apr 14
1
Grouping a list of links by category
Hi, I want to display a list of links grouped by category like this: Group 1 Link 1 Link 2 Group 2 Link 1 Link 2 I have this in my controller: def index @links = Link.find(:all, :order => "category_id") end And this in the view: <ul> <% for link in @links %> <li> <a href="<%= link.url %>"><%= link.link
2008 Nov 27
3
A topic on a category of a subforum really belongs_to what?
Suppose you have a forum with many sub-forums, and each sub-forum has many categories (or sub-sub-forums), and each category may or may not have many sub-categories (or sub-sub-sub-forums). Will a topic belong to the sub-category AND category AND sub-forum; or only to a sub-category, that will in turn belong to a category that will in turn belong to a sub-forum? -- Posted via
2006 May 07
2
Category and subcategories in database
I have a project I''m trying to decide if I want to use rails for. I''m new to rails, so I''m not sure how easy it would be to implement something like this using ActiveRecord. Here''s the situation: Category > subcategory > subcategory > product Category > subcategory > product Some categories will have many subcategories, others few. I want
2006 Apr 20
4
Many to Many Category structure with itself
Basically, I''m trying to have a table called "categories" have a many to many relationship with itself. But I also want each catagory to be able to be "copied" into another category so it is essentially a child category to more than one parent. To me the obvious way of doing this is by creating another table called category_maps (and a model called CategoryMap).