Displaying 20 results from an estimated 4000 matches similar to: "When to make a new controller"
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 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 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 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 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`)
2007 Mar 16
1
sort_link_helper and cross-controller partials
Hello Rubyists,
I ran into a problem with sorting a table (rendered in a partial) using
the sort_link_helper methods after I have submitted data and re-rendered
the table through an AJAX request.
The setup is a follows:
The table is a shared partial of Controller1 and Controller2 accessible
via "shared/table". The AJAX''ed sorting using the sort helper works all
fine on
2006 Jul 11
1
Can one controller use another''s Helper Methods?
If I have controller1 and controller2, how would controller1 call method
Arf in controller2''s helpers?
Thanks,
Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
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 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
2008 Mar 09
1
Two sample t-test
Hi,
I want to perform t-test in R for each individual car. Here is what i have.
Is there a way i can test each car?
The original table (test.csv)
Car Tester2 Tester2 Controller1 Controller2
Audi 0.56 0.9 0.5 0.9
Toyota 0.2 0.9 0.9 0.2
Honda 0.5 0.9 0.1 0.5
BMW 0.2 0.3 0.5 0.7
> cars<-read.table("c://test.csv",header=T,sep=",",
+ skip=2,comment.char="")
2006 Jun 14
13
A good tutorial
Are there any other tutorial than "Agile Web Development with Rails"
that you can suggest? So far I can''t say that RoR has been easy to
learn. :-)
--
Posted via http://www.ruby-forum.com/.
2004 Dec 13
4
Dispatcher? how to use long urls with slashes to call a controller
Hello rails,
I have a controller called file with a method get that returns me a
file from the db.
want to do the following:
When calling http://localhost:8080/file/get/11/hansi.txt i want that
rails does the same as if i would call
http://localhost:8080/file/get/11
This i not the case. I get a 404.
This is useful as this makes the filename in the browser downloading
the
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
2019 Sep 27
2
CentOS 8.0 1905 is now available for download
What does vga=819 and vga=319 mean?
On Wed, 25 Sep 2019 at 01:54, Jon Pruente <jpruente at riskanalytics.com> wrote:
>
> On Tue, Sep 24, 2019 at 6:53 AM Randal, Phil <phil.randal at hoopleltd.co.uk>
> wrote:
>
> > Workaround is to select the install option, hit the tab key, and append
> > vga=819 and hit F10, which starts the graphical installer on a larger
2019 Sep 24
6
CentOS 8.0 1905 is now available for download
I feel your pain re Gnome.
Installing CentOS 8 on a VMware VM which uses BIOS boot mode using the graphical installer results in an installer gui which is chopped off at the right.
Workaround is to select the install option, hit the tab key, and append vga=819 and hit F10, which starts the graphical installer on a larger virtual display.
Or, better still, use EFI boot mode for your VM, and it
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-----
2016 May 23
6
Wildcard X100P Disconnect Problems
Hi All,
When the Caller hangup at the voice menu, the wildcard X100P didn't
disconnect the calls properly and it just keep looping at the voice menu and
timeout and loop again, are there any methods can fix the problems?
Please help!
Thanks,
Randal
2009 Nov 11
6
HeLp oN my database
Using my application i can able to save a new record into my db
but i cannot update a existing record into my db.
using update query i can able to update my records.
but using update_attributes it doesnot update my records.
even i cant find any errors in logs or something.
throughout my application i can able to save a new record but unable to
update my existing records.
actually i have changed