Displaying 16 results from an estimated 16 matches for "santia".
Did you mean:
santa
2006 Apr 25
2
Noob Question: Regarding Form
...know I could just have the view put out;
but I want to use the Ruby Form helpers.
<%= text_field %>
Basically, I want to use database info, and input it into Ruby code to
be interpreted by ruby... i think :P
Hope that made sense, 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.gma...
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 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 09
6
RJS, & mulitple Drop Down Boxes.
Hello Again Rails Folk!
I''m trying to creat a page similar to what the person is doing here...
http://mudabone.com/aietc/?page_id=410
Instead of doing it the way he/she has, I decided to use RJS files, or
at least I tried.
Here''s my view
<%= start_form_tag %>
<%= javascript_include_tag "prototype" %>
<p>
Union:
<div id="union">
2006 May 09
7
going crazy!!!!!! ActiveRecord::StatementInvalid in Project
any suggestions on why I am gaining this error.
ActiveRecord::StatementInvalid in ProjectsController#create
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 projects (`name`,
`date_created`, `quote_id`, `client_id`, `description`, `user_id`)
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 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 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 Apr 25
2
Noob Question: REgarding Forms ( Take 2 )
I''m hoping there''s an easy way to do this. I''m trying to read options
from a database, and insert them into form tags. So for example,
In the Database Table: options
size: 300
type: text_field
maxsize: 300
and I want to create a text_field form tag, with all the appropriate
options, is there an easy way to do this, other than having the code
output the HTML
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 Oct 13
5
Insert NULL into MySQL "time" not 00:00:00
Ok I''m not sure what I''m doing wrong, but I have a table that holds a
bunch of times, however when I don''t fill in the text box that passes
it''s input on to the variables, rails defaults to 00:00:00, which is
bad, because that''s midnight.
I''m pretty sure I''m doing somethign wrong, and I''m even thinking of
using the
2007 Aug 15
4
Is there a automatic counter variable?
Does ruby have anything where if I''m going through a do-while loop, or
a "3.times" loop or "for product in products" where there''s a variable
that will tell me which iteration of the loop I''m on? Instead of
havign to declare my own counter = 0 and then increment it each time?
Seems like something Rails would have... I can''t seem to find
2008 Nov 04
3
Nester Resources, Routes and Class Inheritance
Ok here''s a quicky... but a goody :)
We have models Company, Reference and Applicant... and References and
Applicants just inherit from Company, and are basically companies with
the type field set to reference...
All companies can have a phone number associated with them, and phone
number is a different model...
I''m having trouble using the form_for method with a company that
2008 May 14
5
RailsConf vs. My MacBook's Battery. ( Power Outlet Availability )
So my Macbook''s battery sucks... and I''m thinking of grabbing a new
one, I''m curious how the availability of power outlets have been at
RailsConfs. For those who have gone before, was it hard to find an
outlet to plug into? Are they mindful of this?
I hope so.
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because
2008 Mar 10
6
Probably OT, but CSS Help?
Ok I know this is off topic, but since you guys are usualy so helpful,
I thought I''d try here first.
Building a Rails App and one of the things we''ve done is put a CSS
class of;
* {
font-family:"Lucida Grande",verdana,arial,helvetica,sans-serif;
margin:0pt;
padding:0pt;
}
Now the problem is that the padding setting, for one reason or another
is killing my select