search for: b2blogic

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

2006 Aug 16
4
New Model Object from Existing Model Object
Hey Guys, need a hand again.... Lets say I have an Order... and an Order has Order Lines and Order_Lines have Items... I want to create a New Order, which would have New Order Lines with the same Items... Is there a fast / easy way to do this, w/o having to create a new order, loop through all the order lines, and create them associating them with the Items? Any help would be great, thanks --
2006 Apr 16
5
Newbie Problems with pluralization
Hi, I have a many to many relationship incorporating the following tables: taxes --> taxes_tax_groups --> tax_groups I have a model named tax with the following declaration: has_and_belongs_to_many :tax_groups and I have a model named tax_group with the following declaration: has_and_belongs_to_many :taxes I am attempting to run the following unit test: require
2006 Apr 25
2
Noob Question: Regarding Form
...se, thanks in advance -- Randal Signature Randal Santia Randal Santia 2 3 2005-12-15T19:39:00Z 2005-12-15T19:39:00Z 1 36 209 1 1 244 11.6408 false false false MicrosoftInternetExplorer4 w:LatentStyles> Randal Santia B2B Logic.net Website: http://www.b2blogic.net Email: randal-UNWnRcPzgprk1uMJSBkQmQ@public.gmane.org Phone: 905-829-9777 Toll Free: 888-945-5576 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2006 Jun 05
1
file_column & RMagick
...gi'' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in `process!'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:23:in `process!'' /users/home/b2blogic/domains/marqueeequity.ca/web/public/dispatch.fcgi:24 I did not make any changes (that i know of) to my code. Please help me! I am going insane!:) Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Jun 09
0
Re: Rails Digest, Vol 21, Issue 189
Hello and thanks for emailing B2B Logic. I am out of the office until Monday June 19th. Any emergency problems, comments or concerns should be directed to Ryan Lundie: ryan@b2blogic.net Thanks Randal Santia B2B Logic.net
2006 Jun 29
1
before_destroy & verification
Hey, probably an easy question but, I''m trying to get a method to run "before_destory" for a model, and I want the method to throw an error, and not delete the object from the database, if a certain condition is held Obviously, I can just raise an error and rescue it... but for some reason I can''t get <% error_messages_for ''model" %> to catch
2006 May 03
3
using select_date causes errors...
I''m getting errors whenever the user chooses, for example, April 31st ( since there is no 31st in April, navicat freaks out ), there MUST be a method that ruby has that would allow me to validate a date before I submit to navicat. I haven''t been able to find anything online about it either, it''s probably something simple, I just can''t figure it out. Thanks
2006 Apr 14
4
Application and Database Design
Hi, I am begining the design of an order management system, and had a few questions about the database design. For example: I have a customers table and an orders table, with a one to many relationship. Now if i change the customers address after the order has been created, it will be updated in any of the past orders, and I do not wish this to happen. Is the best way to deal with this to store
2006 Apr 20
5
strange mysql problem
i have this model: class LineItem < ActiveRecord::Base belongs_to :quote end in the console: >>l = LineItem.create ActiveRecord::StatementInvalid: Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' , , , )'' at line 1: INSERT INTO line_items (`qty`, `quote_id`,
2006 Jul 11
0
using acts_as_list storing the information in a session
Hi, I have an order model that i am storing in a session, that is not currently in the database. I am updating the page using ajax, and I do not want to store the order in the database untill it is completely filled out. I have order_items that I am adding to the order, and I have used the acts_as_list within the order_item model. My problem comes when i try and rearrange the order_items
2006 Jul 19
0
Find, .map and Distinct
@rate_types = PerformerCategoryRate.find( :all, :conditions => [ "performer_category_id = ?", @calc_sheet_performer_line.performer_category.id ], :select => "DISTINCT rate_type_id, min(id)", :group => "rate_type_id" ).map { |pc|
2006 Jul 19
1
using link_to_remote to post form values
Hi, I have a website in which I am attempting to post certain form values back to my controller using link_to_remote. I need to do this without any additional form tags, as it is already within a larger form. I have found a mod that i think would do this @ http://dev.rubyonrails.org/ticket/2137 but unfortunatly the site is down right now. Does anyone have any ideas on the best way to implement
2006 May 03
1
error_messages_for when saving within another model
Hi, I have this save routine: def customer_address_create customer_options @customer = Customer.find(params[:id]) @customer.addresses.create(params[:address]) @saved = @customer.save end That passes to a rjs template like this: if @saved page.visual_effect :Fold, ''add_address'' page.replace_html ''addresses'', :partial =>
2006 May 10
0
Passing Muliple Parameters with remote_function
<select name="media" id="media" onchange="<%= remote_function( :url => { :action => :show_performer_categories, :rate_group_id => @rate_group }, :with => "''media_id=''+this.value''" ) %>"> I''m guessing that''s wrong since WebRick does nothign when I
2006 May 15
0
collection_select default
Hi, I have a form where i have two drop down lists formed by using the collection_select helper. I need the second list "selected" item to change depending on what was selected in the first list. I am currently using an onChange ajax call when the first list is changed, but I cannot get the second lists default value to change. I have read that if I set the @variable.attribute
2006 Apr 28
2
Ajax form error handling
Hi, I have a customer add form in which i call form_remote_tag to update a customer list within another div on my page. I need to also, however, allow for proper error checking, and the issue is that the form_remote_tag will only update a single div tag. I have seen a few ways to deal with this, but I want to know what the best way is, while still allowing the model to do all of the
2006 Apr 25
0
How to manage one to many within application.
Hi, I have an application with a customer model, and an address model. A customer has a one to many relationship with an address. I currently have an add new customer page, that incorporates an "add address" button, which places a helper form within a div using the link_to_remote function. I can click the add address button multiple times, and it will add multiple address
2006 May 02
3
Ordering Results returned by has_many relationship.
Noob Question 31,265,232 if I''m searching on an object, say order, that has many "order_lines" and I want to display order lines by Quantity ( an attribute of the order_lines ) descending how could I do that without having to do a find() with :order, but something like; Order.order_lines.each do |ol| <!-- code to diplay the line --> how can I determine the field
2006 May 01
4
When to make a new controller
Hey all, Ok this is probably a newb question, but I haven''t been programming with MVC for very long, and I''ve been wondering what the general opinion is, or best practices, for making a new controller. Like what cases would you need a new controller for and what cases can you just put everything into one controller? Thanks in advance, Randal -- Posted via
2006 Jul 06
7
form_remote_tag submitting to an rjs file.
I have the following form that I am trying to use, but for some reason, the form gets submitted with out the params values. <%= form_remote_tag(:url => { :action => :add_item_to_order }) %> <tr> <td> <%=collection_select(:order_item , :item_category_id, @item_categories, :id, :name)%> </td> <td> <%= text_field