search for: sub_categori

Displaying 12 results from an estimated 12 matches for "sub_categori".

Did you mean: sub_category
2008 Jan 20
0
Deserialize JSON post body
...my controller with an xml request body: curl -u 53b2c:X -H "Content-Type: text/xml" -v -d "<subscriber><full_name>Alex Egg</full_name><carrier_id>2</ carrier_id><mobile_phone>1234321843</mobile_phone><password>asdf</ password><sub_categories type=\"array\"><sub_category>1</ sub_category><sub_category>2</sub_category></sub_categories></ subscriber>" http://localhost:3000/subscribers/helper.xml Rails deserialized xml xml into a subscriber hash: Parameters: {"subscriber"=...
2006 Jun 16
1
sortable acts_as_tree with heirarchy
I''ve been stumbling on the tut at oriontransfer (http://wiki.oriontransfer.co.nz/main/show/SortableTree) I''ve got it working in a one dimensional list and I''ve got the drag and drop working on children, but as can''t get it to save the tree. Here''s my view: <h2>Menu Prototype 2</h2> <%= flash[:notice] %> <ul
2011 Apr 21
0
Routing assertions
Hi Thanks for help me out I have two routes : match ''admin/categories'' => ''admin#categories'', :as => ''admin_category'' match ''admin/categories/:sub_category'' => ''admin#categories'' In rspec
2006 Jun 17
5
Having trouble listing tiers of categories
I have categories and sub-categories in a table called "categories". Every row has a "parent" field to note if the entry is the sub-category of another (never goes deeper than 1 level). So there might be something like this: id | name | parent 1 Dog 0 2 Pug 1 3 Siamese 5 4 Shih Tzu 1 5 Cat 0 6 Wiener Dog 1 7 Persian
2005 Dec 16
2
HOW DO I populate options from previous option click
Hi, I have a form with three drop down option lists. Currently each of these contain full listings as instantiated in the controller on entering the edit action. What I would like to do is filter the second list based on what the user selected on the first and the third filtered to reflect the second. For example I have major_role, role and person_in_role = role is a subset of major_role
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
...quot;, :null => false t.datetime "updated_at", :null => false end create_table "pages", :force => true do |t| t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "sub_categories", :force => true do |t| t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end end I have had a lot of trouble with it, this is the best I''ve gotten so far, but I am still getting the error: ActiveRecord::HasMan...
2006 May 23
7
has_and_belongs_to_many question
...In the past i would structure a many to many like this: categories ---------------------------------------------------- | id | name | ---------------------------------------------------- 1 Some Category 2 Another Category 3 One More Category sub_categories ----------------------------------------------------- | id | name | category_id | ----------------------------------------------------- 1 SubCategory One 1,2 2 SubCategory Two 2 3 SubCategory Three 1,2,3 is the...
2006 Apr 09
1
select helper question
...on rails. There are many categories which can contain subcategories. I defined the model like this: class Category < ActiveRecord::Base has_and_belongs_to_many :notes belongs_to :parent_category, :class_name=>"Category", :foreign_key=>"category_id" has_many :sub_categories, :class_name=>"Category", :foreign_key=>"category_id" end And scaffolded the controller with the generator. I modified the _form.rhtml for creating and updated to this: <%= error_messages_for ''category'' %> <!--[form:category]--> &lt...
2007 Feb 26
24
Ruby/rails port of Cocoon/hibernate
Hi, I''m currently running an apache/jboss cocoon/flow/hibernate/ajax paypal (directpayment) project and am looking into the possibility of porting it across to ruby/rails. For that reason I would like to know the following: 1. Can I call my java classes or would I be looking at a complete rewrite in ruby? 2. How effective is ruby in terms of seperation of concerns regarding design from
2005 Jul 25
2
acts_as_tree and traversing parent/child relationships
I am working on an Rails application that uses a pretty complex category structure through out the site. I have defined a table to house all the info and a FK to reference parents within the table CREATE TABLE categories ( id int(11) NOT NULL auto_increment, name varchar(50) NOT NULL, parent_id int(11) default NULL, constraint fk_category_id foreign key (category_id) references
2010 Jun 04
6
Ajax fails in IE8
hi guys, I am testing a new optional funtionality in my site with IE 8 after success with Firefox 3.6.3, chrome and safari. The new functionality basically sees a "sub category" drop down list get generated in my form as soon as a "Category" value is selected from the "Category" drop down list. I have been using the standard rails api such as observe_field, and
2008 Apr 01
1
Navigation Problems
Hi, I am having problems with my page. I have a banner and navigation bar in controller_name.rhtml in app/views/layout. Can someone please help? Thanks In the navigation bar, I have the following links: Category1 Sub-Category1 Sub-Category2 Sub-Category3 Sub-Category4 Sub-Category5 Sub-Category6 In the main content, I have the following links: Sub-Category1 edit delete