Displaying 14 results from an estimated 14 matches for "gavrilescu".
2006 Mar 31
10
ruby help / if (cond or cond)
Why this code doesn''t work as expected? It raises exceptions everytime.
Tried with || operator, too.
validates_each :x, :y do |record, attr|
record.errors.add (attr, ''between 1 and 100'') if (attr.to_i>100 or
attr.to_i<0)
end
--
They say money can''t buy happiness? Look at the smile on my face... ear to ear, baby!
2012 Jun 04
4
Driver for a REDi Blazer 600VA UPS
...0 Clear To Send
DSR 6 6 in 0 Data Set Ready
GND 7 5 - - Signal Ground
DCD 8 1 in 0 Data Carrier Detect
DTR 20 4 out 1 Data Terminal Ready
RI 22 9 in 0 Ring Indicator
--
Marius Gavrilescu
(science-kids) Rain is saved up in cloud banks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/2012060...
2012 Jun 09
3
[HCL] REDi/Centralion Blazer 600 VA (BLAZER600c) supported by blazer_ser
...ld apply to:
* REDi/Centralion Blazer 400VA
* REDi/Centralion Blazer 600VA
* REDi/Centralion Blazer 800VA
[ since these three are the same UPS with different batteries ]
and might also apply to the other REDi/Centralion Blazer UPSes
If you would like any more information, please tell me
--
Marius Gavrilescu
(etc) They laughed at Einstein. They laughed at the Wright Brothers. But they also laughed at Bozo the Clown. --Carl Sagan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: &...
2007 Feb 25
5
Dynamically uploading a list that's already in a form
I have the classic case of: Posts, and Categories. When the user submits
a post, he has a drop-down list of categories. I want to put a "Add
category" link next to the list of categories.
This is already inside a form, so a "link_to_remote" that creates a
small AJAX form inside the "submit post" form will not work because that
will mean to embed a form in another
2010 Jul 08
3
my web app seed data and cucumber
I''m writing a web app which is used a SaS. Each customer has their own
db and app directory. I have a rake task which creates all necessary
minimum data to run their website: default rights and roles, a
superadmin user, a "us_states" table already populated, some local
depots and terminals (it''s a logistics app).
I don''t have any cucumber scenarios for it and
2009 Apr 06
3
After Rails 2.3.2 upgrade: superclass mismatch for class TestCase (TypeError)
I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake
test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass
mismatch for class TestCase (TypeError)
I generated a new test app and all tests run OK.
For the upgrade I ran rake:update and renamed the class in test_helper
to ActiveSupport::TestCase. Also renamed
2008 Feb 03
1
ActiveRecord object.valid? triggers unexepected results
I''m editing an ActiveRecord object in a session through AJAX, updating
it with object.attributes = params[:object], and validating it with
object.valid?
Because it''s associated with other objects in a form, I want to save
them all together.
The surprise was that object.valid? triggers after_validation_on_update.
I''m having an audit log and I was getting bogus entries.
2009 Apr 07
3
assert_valid in unit tests after upgrade to rails 2.3 doesn't work
def test_valid
assert_valid State.first
end
Error:
test_valid(StateTest):
NoMethodError: undefined method `assert_valid'' for #<StateTest:
0x7f0d60750318>
I see that test_valid is now in
ActionController::Assertions::ModelAssertions. Does this mean that
test_valid is designed to be used i ActionController tests only?
I can change my assert_valid(State.first) into assert
2006 Mar 13
2
Prototype ajax/javascript q
I''m trying to send to my application the coords x,y on an "input type
image" in a html form, but x,y variables are not present in the
POST_DATA (are not submitted). Any other field (hidden inputs) are being
sent when I click on the image input form field.
I use rails 1.0 and prototype 1.4, browsers Seamonkey
2.0, Firefox 1.x and Konqueror, Linux, and I''m just a
2007 Mar 23
4
DRY - with modules, render_component or.. ?
I have an B2B application where a pretty complex order form needs to be
submitted and edited on the admin controller, buyer controller and
seller controller with some small differences.
How do I make available the edit order methods all controllers?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Mar 14
4
ruby-postgres: can''t convert string to integer
Hi everybody,
I''m experiencing trouble when trying to use ruby-postgres with a legacy
database I need access to. To me it seems the problem is the VARCHAR
columns used there as primary keys. On a simple
me = User.find(''PS12345'')
I get a type error exception with the message ''can''t convert String into
Integer''. The trace is:
2006 Mar 23
2
newbie - form_tag with get?
I can''t create a form with method "get".
The rhtml code:
<%= form_tag :controller => ''teritory'', :action => ''add'', :method => ''get'' %>
The generated html code:
<form action="/teritory/add?method=get" method="post">
What i''m doing wrong?
--
They say money can''t
2008 Aug 01
2
BigDecimal to letters
Is there a method that converts BigDecimal 1520.0 to "one thousand five
hundred and twenty"?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2008 Dec 02
0
Optional parameter in nested routes
All my charges belong to a company. On the new charge form, sometimes I
specify a company, sometimes I don''t because I don''t know the company
beforehand in all cases.
So, sometimes the @company object is nil.
I''m using this helper: new_company_charge_path(@company)
For a company object, it generates a path like
/companies//32/charges/new
For a nil object, it generates a