Displaying 20 results from an estimated 10000 matches similar to: "Re: Rails Digest, Vol 21, Issue 189"
2006 Apr 25
2
Noob Question: Regarding Form
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 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 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 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 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 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 Jun 05
1
file_column & RMagick
Hi,
I have a site where I wish to upload a resize a picture, and store it in
the file system. The best solution that I have found for this so far is
using file_column. This was working great, for about an hour, but all of
the sudden I began to get the following error (only when i attempt to
resize).
NameError (undefined method `assoc'' for class `Magick::ImageList''):
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
2014 Mar 03
0
Re: 'virsh capabilities' on Debian Wheezy-amd64 reports different cpu to Wheezy-i386 (on same hardware)
On Mon, Mar 03, 2014 at 11:15:51AM +0000, Struan Bartlett wrote:
>
> On 03/03/2014 10:55, Martin Kletzander wrote:
> > On Mon, Mar 03, 2014 at 10:47:03AM +0000, Struan Bartlett wrote:
> >> On 03/03/2014 10:44, Martin Kletzander wrote:
> >>> On Mon, Mar 03, 2014 at 10:30:11AM +0000, Struan Bartlett wrote:
> >>>> Hi Martin
> >>>>
>
2014 Mar 03
0
Re: 'virsh capabilities' on Debian Wheezy-amd64 reports different cpu to Wheezy-i386 (on same hardware)
On Mon, Mar 03, 2014 at 10:47:03AM +0000, Struan Bartlett wrote:
>
> On 03/03/2014 10:44, Martin Kletzander wrote:
> > On Mon, Mar 03, 2014 at 10:30:11AM +0000, Struan Bartlett wrote:
> >> Hi Martin
> >>
> >> Thanks for your response. Here's the output of that grep:
> >>
> >> # grep ^flags /proc/cpuinfo | sort -u
> >> flags
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
--
2009 May 14
2
Unable to subscribe to newly created subfolders under public mailboxes with acl plugin enabled
I've "group" namespace and b2b mailbox under it. I'm unable to
subscribe to it and deliver emails there.
Here is my problem: if I create subfolder (lets name it "subf") under
b2b mailbox I'm unable to subscribe to it until acl plugin is enabled.
Even if I put dovecot-acl file in .b2b.subf folder with anyone full
rights dovecot-acl-list doesn't get populated
2004 Mar 16
0
Web Seminar Invitation: High-Octane Data for CRM
D&B and DM Review present
B2B CRM in Overdrive: The Revenue Impact of Optimal Data
Date: Tuesday, March 23, 2004
Time: 2:00 p.m. - 3:00 p.m. ET
11:00 a.m. - 12:00 a.m. PT
Get your CRM system in overdrive by adding "high-octane data." CRM is completely dependent on the quality of information contained within. Yet, according to industry experts, poor data quality is the number one
2000 May 10
0
The Contrarian - BUY ALERT . ~*
THE CONTRARIAN
BUY ALERT:
RecycleNet Corp.
Symbol - GARM (OTCBB-pink sheets)
Recent Price - $.35
52 Week Range - $.12 - .75
Estimated Float - 4 Million
Shares Outstanding - 78 Million
Now that Microsoft and other Internet stocks have fallen, it's time to
sift through the wreckage and look for treasure.
2006 Apr 20
2
Additional Fields in a Join Table
Hi,
I am creating an order management web application, and have run into an
issue over join tables. I am reading Agile Web Development and it says
that I can put additional fields within my join tables, and they give
the example of a date field.
I want to know if it is possible to do the following:
I have an orders table with the order information as well as an
orders_items table and an
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
2014 Mar 03
0
Re: 'virsh capabilities' on Debian Wheezy-amd64 reports different cpu to Wheezy-i386 (on same hardware)
On Mon, Mar 03, 2014 at 10:30:11AM +0000, Struan Bartlett wrote:
> Hi Martin
>
> Thanks for your response. Here's the output of that grep:
>
> # grep ^flags /proc/cpuinfo | sort -u
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall
> nx pdpe1gb rdtscp lm constant_tsc
2019 Sep 25
1
CentOS 8.0 1905 is now available for download
I had fun with that - enter any number you like, if it's not valid it will prompt you with suggestions.
It seems to want decimal on the commandline, hex if responding to the prompt.
Phil
Phil Randal
Infrastructure Engineer
Hoople Ltd | Plough Lane | Hereford HR4 0LE
Tel: 01432 260415 | Website: www.hoopleltd.co.uk
Follow us on: Twitter | Facebook | LinkedIn
-----Original Message-----
2014 Mar 03
2
Re: 'virsh capabilities' on Debian Wheezy-amd64 reports different cpu to Wheezy-i386 (on same hardware)
On 03/03/2014 10:44, Martin Kletzander wrote:
> On Mon, Mar 03, 2014 at 10:30:11AM +0000, Struan Bartlett wrote:
>> Hi Martin
>>
>> Thanks for your response. Here's the output of that grep:
>>
>> # grep ^flags /proc/cpuinfo | sort -u
>> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
>> cmov pat pse36 clflush dts acpi mmx