Displaying 20 results from an estimated 90 matches similar to: "sortable acts_as_tree with heirarchy"
2008 Apr 19
4
Is testing output within content_for possible?
I wanted to test that the links below were being rendered in the views.
- content_for :sidebar do
%ul.links
%li= edit_link edit_admin_contact_url(@contact), "Contact"
# view test
it "should have the correct side bar links" do
do_render
response.should have_tag("ul.links") do
with_tag("a[href=?]",
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
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
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
2009 Oct 12
1
[LLVMdev] [PATCH] docs/WritingAnLLVMPass.html: s/heirarchy/hierarchy/
Hi,
attached patch fixes an obvious typo in docs/WritingAnLLVMPass.html.
best regards,
Timo Lindfors
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-docs-writing-pass-typo1.patch
Type: text/x-diff
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091012/27de943d/attachment.patch>
2007 Dec 22
1
Help with complicated heirarchy exclude syntax
I want rsync to do this:
Backup all files under ~/, except in some cases.
When rsync gets to ~/News, which has an extensive, fluctuating and
deep heirarchy of directories under it. An example might be:
News/agent/nntp/news.gmane.org/gmane/comp/lang/perl/beginners/
I want to skip any files that have all numbers for names which would
be under the last directory above. However there are at
2008 Jan 20
0
Deserialize JSON post body
I''m doing an HTTP post to 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
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
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on
site navigation that can deal with any model being in the nav, allow
nesting, and can dynamically update.
So I thought about it for a while, and decided on a MenuItems class, which
contained the position of the child in relation to it''s siblings, where the
parent and the child were polymorphic. Then a given
2006 May 23
7
has_and_belongs_to_many question
Hello,
I am trying to make the "switchover" to programming my apps in Rails and
have a question about database structure.
In the past i would structure a many to many like this:
categories
----------------------------------------------------
| id | name |
----------------------------------------------------
1 Some Category
2 Another
2006 Apr 24
1
dragdrop.js problems - workaround here
Hello, I am not sure how many people are using the shiny new tree
version of dragdrop.js - well it seems that someone arbitrarily
changed part of my implementation and has broken the functionality
with rails:
864 serialize: function(element) {
865 element = $(element);
866 var options = Object.extend(Sortable.options(element),
arguments[1] || {});
867 var name =
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
2006 Jun 19
0
For toggling update "divs" in form_remote_tag on condition!
Hi,
I have an issue in updating two divs base on the condition. Like if I
submit with the submit button it needs to update the div "div_main_data"
and on change of one select option it needs to update another div call
"div_top_data".
<%= form_remote_tag( :update => "div_main_data", :url => { :action =>
:change_top_view }) %>
<!-- here i want
2006 Apr 09
1
select helper question
Hi there, I try to develop a medical application using ruby 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,
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
2006 Jan 25
0
Sortable Tree Modification
Hi, I''ve been working on a sortable tree modification.
You can get what I have done so far here: http://
www.oriontransfer.co.nz/Sortable+List.zip
Firstly, serialize needs work to support a tree structure. Secondly,
I have not tested if it still works with lists property (I''m sure it
would work fine, but I haven''t tested it). Finally, I need to merge
this code
2010 Oct 02
0
[LLVMdev] projects that work with llvm 2.8
Dear Chris,
Project Name: Kai
Project Website: http://www.oriontransfer.co.nz/research/kai
Project Description: Kai (Japanese 会 for meeting/gathering) is an experimental interpreter that provides a highly extensible runtime environment and explicit control over the compilation process. Programs are defined using nested symbolic expressions, which are all parsed into first-class values with
2010 Oct 03
1
[LLVMdev] LLVM 2.8 Source Code Visualisation
Hello my friends,
I have put together some visualisations of the LLVM source code because I think it is great to see how much work has gone into LLVM to date.
Code Visualisation - Orion Transfer Ltd
http://www.oriontransfer.co.nz/research/code-visualisation
These are based of the 2.8 source code up until a few days ago. I hope this is of enjoyment for some of you.
Kind regards,
Samuel
2011 Apr 07
1
Problems with /bin/cat and flintlock?
Hi Guys,
I'm working on some integration project with Ruby, Rack, Apache, Phusion Passenger and Xapian.
I've been having intermittent issues with the flintlock code - it seems that the function FlintLock::lock is never returning and this is locking up the Ruby process.
My guess is that Xapian is locking up in a system call and Ruby can't schedule its green threads.
I've done