search for: list_item

Displaying 20 results from an estimated 23 matches for "list_item".

2007 Dec 15
3
check_box not being checked
I''m new to RoR and I''m having a little problem that I can''t solve. My model is simple. I have Lists and ListItems. I have a view that loops through all the list items, and I put the HTML for the each list item row in a partial called _list_item.rhtml. This is the view, called show.rhtml <ul> <%= render(:partial => "list_item", :collection => @list.list_items) %> </ul> And this is the partial _list_item.rhtml <li> <%= check_box ''list_item'', ''done'' %> &lt...
2006 Apr 09
12
Help With Dependent Drop-Down and @Params
...Here is my problem: The user selects a Utility and a select with Receiving Points is updated with the items related to the specific utility. Here is my code... <<controller>> def fill_rec_points @lookups = Lookup.find_all_by_list_prompt(@params[:utility], :order => ''list_item'') render :partial => ''rec_points'' #I use a partial here to fill the span so as not to mix View and Business logic in the controller... end <<view>> <p><label for="deal_utility">Utility</label><br/> <%...
2006 Sep 10
5
why isn't :order working in acts_as_list
Ok, I''m sure this has to be something stupid that I''m doing (or not doing), but I can''t seem to get things to order by the specified column. class List < ActiveRecord::Base has_many :list_items, :order => "orderby" The error I get back when trying to save the link is: Unknown column ''position'' in ''order clause'': SELECT * FROM list_items WHERE (list_id = 9) ORDER BY position DESC LIMIT 1 So it looks like its just defaulting to '...
2006 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that result in an ajax call that updates two sections on the page. Here is the code in the controller def create ... render :update do |page| page.replace_html ''list_items'', :partial => ''lists/list_items'' page.replace_html ''add_item'', :partial => ''lists/add_item'' end end Here is the version of code in the template that I WANT to use to POST to this action: <%= form_remote_tag...
2006 Jul 02
10
Use Rails or PHP?
I''m new to RoR and have used PHP. I want to develop a personal organizer that allows me to add lists (tables) and search them. The ActiveRecord concept seems to allow me to set up something that works with an existing table, but I want the ability to add tables without programming. I know how to do this in PHP and I can put the SQL into queries in RoR, but does ActiveRecord let
2020 Jan 31
0
Resource List Subscriptions: how to remove an item from another list ?
Hi, As mentioned in [1], a common pattern is to let everyone monitor everyone except oneself. How do implement this ? Is there something like this: [alice_list] list_item = full_list list_exclude_item = alice [bob_list] list_item = full_list list_exclude_item = bob If negative, would it complex to add to current Asterisk ? [1] https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=30278158 Best regards -------------- next part -------------- An HTML attachm...
2008 Apr 12
1
acts_as_tree undefined method?
i have acts_as_tree installed as plugin under rails 2.0.2 and also its defined in class TreeItems, but when i put this in my view <ul class="tree_level1" id="cars">Furniture <% TreeItem.root.category.children do |cat_children| %> <li><a class="list_item" href="#"><%=h cat_children.name %></a></ li> <% end %> </ul> it gives me this: undefined method `acts_as_tree'' for #<Class:0x2bb3f30> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are...
2006 Feb 10
2
Sortable + Draggable : doesn''t follow the mouse horizontally
When a ''draggable'' element is made ''sortable'', it no longer follows the mouse horizontally when you drag it. Is there a solution/workaround? TIA Alain
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
...class="cx"> </span><ins>+%extend wxListCtrl { + VALUE get_item(int row, int col = -1) + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE returnVal = Qnil; +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxListItem *list_item = new wxListItem(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsplist_item->SetId(row); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif ( col != -1 ) +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp list_item->S...
2006 Oct 10
7
Problems with RJS w/ Lighttpd & Ubuntu
I have my code working on my local machine no problem, but when I upload to the server the RJS effects I have aren''t working. The server is running Ubuntu Dapper w/ lighttpd while on my local machine I''m using webrick. For kicks I shut down lightty and booted my app on the server with webrick and it works fine. So it''s definitely a lightty issue. Anyone else seen
2006 Jan 29
6
tyro Ruby questin
Trying to print out a simple database grid, using, with column headers such as ''SunToSatRoles'', ''PrimaryRoles'', etcetera. Iterating through an object @List which is populated thusly @list = mymodel.find(:all, :order => mymodel.editlist_order) When I do something like <table> <% for i in @list %> <tr> <td><%= i.inspect
2007 Jan 12
9
Nil object in E1 capture the order
...List Name:</label> 12: <!-- <%= form.text_field :name, :size => 40 %> --> 13: </p> I have a page with all the product listed. And I''m creating the list by choosing from products on this page. For database and model setting I have product.rb has many list_item list.rb has many list_item list_item.rb class ListItem #belongs_to :list #belongs_to :product include Reloadable attr_reader :product, :quantity The lines I commented out will generate errors as follows NoMethodError undefined method `belongs_to'' for ListItem:Class RAILS_R...
2012 Oct 16
11
[PATCH 00/10] VMCI for Linux upstreaming
* * * In an effort to improve the out-of-the-box experience with Linux kernels for VMware users, VMware is working on readying the Virtual Machine Communication Interface (vmw_vmci) and VMCI Sockets (vmw_vsock) kernel modules for inclusion in the Linux kernel. The purpose of this post is to acquire feedback on the vmw_vmci kernel module. The vmw_vsock kernel module will be presented in a later
2012 Oct 16
11
[PATCH 00/10] VMCI for Linux upstreaming
* * * In an effort to improve the out-of-the-box experience with Linux kernels for VMware users, VMware is working on readying the Virtual Machine Communication Interface (vmw_vmci) and VMCI Sockets (vmw_vsock) kernel modules for inclusion in the Linux kernel. The purpose of this post is to acquire feedback on the vmw_vmci kernel module. The vmw_vsock kernel module will be presented in a later
2006 Apr 05
1
select in *.rhtml
....find_all end ... class Item < ActiveRecord::Base belongs_to :category end class Category < ActiveRecord::Base has_many :items end I found some news postings that said the select tag in my _forms.rhtml was ''object'', ''attribute'', and ''list_items'', but I''ve tried several combinations and can''t get this right. This is my ~/app/views/items/_form.rhtml <p><label for="item_category_name">Category</label><br/> <%= select ''item'', ''name'', '&...
2014 Mar 29
0
rails 4 link_to post method
I have a rails 4 app that has a link_to with a post method but I keep getting: No route matches [GET] "/payments/136330" <%= link_to("Buy Now", buy_path(list_item), :method => :post) %> Ideas?? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd...
2013 Jan 08
13
[PATCH 00/12] VMCI for Linux upstreaming
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware to address Greg's and all other's code review comments. Summary of changes: - Rebase our linux kernel tree from v3.5 to v3.7. - Fix all checkpatch warnings and errors. Fix some checkpatch with -strict errors. This addresses Greg's comment: On 15 Nov 2012
2013 Jan 08
13
[PATCH 00/12] VMCI for Linux upstreaming
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware to address Greg's and all other's code review comments. Summary of changes: - Rebase our linux kernel tree from v3.5 to v3.7. - Fix all checkpatch warnings and errors. Fix some checkpatch with -strict errors. This addresses Greg's comment: On 15 Nov 2012
2006 Feb 16
5
filter a list
...ect how to filter the list. here''s what i put in my controller if @params[:filter].nil? @params[:filter] = { ''sent'' => "1"} end ... generate the corresponding @items array .. here''s what i did in my view <%= form_tag :action => ''list_items'' %> <%= check_box ''filter'',''sent'' %> <%= submit_tag ''Filter'' %> <%= end_form_tag %> <table> ..... </table> inspecting the @params value, it seems to has a filter[:sent] key, with the correct v...
2012 Oct 30
29
[PATCH 00/12] VMCI for Linux upstreaming
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware. -split guest, host and core driver code into different files -use EXPORT_SYMBOLS_GPL -remove vmci_device_get and vmci_device_release APIs -simplify the event deliver mechanism -driver ioctl code cleanup -sparse clean * * * In an effort to improve the out-of-the-box experience with