Displaying 20 results from an estimated 1000 matches similar to: "Not able to recognize helper class method in controller!"
2006 Jun 16
1
Is there a way of retrieving all req parameters without name
Is there a way of retrieving all the request parameters without name in
the controller.
Thanks & Regards,
Asem
--
Posted via http://www.ruby-forum.com/.
2006 May 15
2
retrieving hashes key & values (ASAP)
Hi,
I want to retrieve the set of key & values which returns from a
stored procedure : connection.select_all "exec common.dbo.scr_lookupric
''AAP.N'' ".
The results i want to display in a view screen call result.rhtml.
Please help me out ASAP.
Thanks in advance.
joshua...
--
Posted via http://www.ruby-forum.com/.
2007 Jul 14
2
Using Helpers inside a Controller
I want to use helpers inside a controller method for an AJAX
application. After the page is loaded and displayed, there will be an
asynchronous javascript request to load additional resources such as
html forms and other data.
The controller which handles the request will collect the resources and
send them back in json format.
def get_resources
data=Hash.new
data[:form1]=form_helper1()
2013 Feb 03
4
Create a helper for models and views?
Hi!
If I have a method that is useful in both models and in views, where would
be the appropriate place to put it?
The method in question just takes two dates as strings, tries to parse them
and returns all dates in the range between them. It also takes care of the
issues when the dates are badly formatted etc etc..
This method is being used in several models (so a simple class method in
2014 Jun 13
2
[PATCH] Support for ASEM UPS on Linux/i2c
As said in previous mail, I just finished a first working version of a driver
for the UPS found on ASEM PB1300 device
(http://www.asem.it/prodotti/industrial-automation/box-pcs/performance/pb1300/)
Linux only, accessed through i2c/SMBUS.
If you can spare some time, please review. Expecially my autotools skills are
ehm... a bit rusty.
--
Giuseppe Corbelli
WASP Software Engineer,
2014 Jun 23
4
[PATCH] Support for ASEM UPS on Linux/i2c
On 18/06/2014 04:17, Charles Lepple wrote:
> On Jun 13, 2014, at 2:53 AM, Giuseppe Corbelli <giuseppe.corbelli at copanitalia.com> wrote:
>
>> As said in previous mail, I just finished a first working version of a driver for the UPS found on ASEM PB1300 device
>> (http://www.asem.it/prodotti/industrial-automation/box-pcs/performance/pb1300/)
>> Linux only, accessed
2014 Jun 18
0
[PATCH] Support for ASEM UPS on Linux/i2c
On Jun 13, 2014, at 2:53 AM, Giuseppe Corbelli <giuseppe.corbelli at copanitalia.com> wrote:
> As said in previous mail, I just finished a first working version of a driver for the UPS found on ASEM PB1300 device
> (http://www.asem.it/prodotti/industrial-automation/box-pcs/performance/pb1300/)
> Linux only, accessed through i2c/SMBUS.
> If you can spare some time, please review.
2014 Jul 07
0
[PATCH] Support for ASEM UPS on Linux/i2c
Giuseppe Corbelli <giuseppe.corbelli <at> copanitalia.com> writes:
> Nevermind, please try the one attached, just created by
>
> git diff -p 80d9534 configure.ac data/driver.list.in drivers/Makefile.am
> drivers/asem.c > asem.patch
>
> Just applied it on current master (80d9534a133da170cade150700407920450a9753)
> and seems ok.
Sorry I did not test this
2006 Apr 19
8
Module and Model
I am getting the following error
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb:1129:in
`method_missing'': undefined method `directory?'' for Msg::File:Class
(NoMethodError)
I have a model called Msg::File in models/msg/file.rb, and I have a file
in lib/msg/helper.rb which references to both Msg::File and
File.directory?
How do I help activerecord
2007 May 21
4
Just upgraded to 1.0.0, should render_text isn''t working for me
I finally got around to upgrading from 0.8.2 (!!). I had a spec which
looked like
specify "should render abc123" do
controller.should_render :text => "abc123"
get :key
end
With 1.0.0, the new spec is
it "should render abc123" do
get :key
response.should render_text("abc123")
end
However it doesn''t work, giving me the error:
undefined
2014 May 28
2
New driver for ASEM UPS
Hi all
I'm developing a NUT driver for a custom UPS found on ASEM PB 1300 devices
(http://www.asem.it/prodotti/industrial-automation/box-pcs/performance/pb1300/)
It's based on some custom charger and a bq2060 battery monitor, talk to it on
i2c bus.
I will have something usable in a few days. Got some questions/considerations,
though:
*) interested in integrating into NUT?
*) would you
2014 Jul 07
2
[PATCH] Support for ASEM UPS on Linux/i2c
On 07/07/2014 15:03, Charles Lepple wrote:
> Giuseppe Corbelli <giuseppe.corbelli <at> copanitalia.com> writes:
>
>> Nevermind, please try the one attached, just created by
>>
>> git diff -p 80d9534 configure.ac data/driver.list.in drivers/Makefile.am
>> drivers/asem.c > asem.patch
>>
>> Just applied it on current master
2014 Jul 14
2
[PATCH] Support for ASEM UPS on Linux/i2c
On 07/07/2014 15:03, Charles Lepple wrote:
> Giuseppe Corbelli <giuseppe.corbelli <at> copanitalia.com> writes:
>
>> Nevermind, please try the one attached, just created by
>>
>> git diff -p 80d9534 configure.ac data/driver.list.in drivers/Makefile.am
>> drivers/asem.c > asem.patch
>>
>> Just applied it on current master
2014 May 28
0
New driver for ASEM UPS
On May 28, 2014, at 3:01 AM, Giuseppe Corbelli wrote:
> Hi all
> I'm developing a NUT driver for a custom UPS found on ASEM PB 1300 devices
> (http://www.asem.it/prodotti/industrial-automation/box-pcs/performance/pb1300/)
>
> It's based on some custom charger and a bq2060 battery monitor, talk to it on i2c bus.
Looks interesting!
> I will have something usable in a
2006 Feb 25
1
extending a class
I''m trying to add this to my project:
class String
def escape_quotes
self.gsub(/["'']/) { |m| "\\#{m}" }
end
end
I tried putting it in application_helper.rb, but it''s not getting found.
Where does it need to go?
Thanks,
Chris
--
Posted via http://www.ruby-forum.com/.
2014 Jan 26
2
3g usb dongle - Huawei E1552
Hi
Please could someone assist me?
I?e got a 3g usb dongle - Huawei E1552.
[root@]# lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 03f0:8407 Hewlett-Packard
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus
2006 May 22
4
How to check an input String is a number or not in ruby?
How to check an input String is a number or not in ruby?
Thanks in advance,
Joshua
--
Posted via http://www.ruby-forum.com/.
2014 Aug 28
1
[PATCH] Support for ASEM UPS on Linux/i2c
Giuseppe,
One more question about your driver: should we put a recommendation for the "port" name in the man page? Looking at the code, it seems like it should be "/dev/i2c-0" or similar.
Thanks,
--
Charles Lepple
clepple at gmail
2006 Mar 04
13
Using helpers from controllers ?
There is a solution to use helpers from controllers ?
I have an error :
|undefined method `content_tag''|
class ApplicationController < ActionController::Base
def test
return content_tag("a","test")
end
end
2014 Jul 07
0
[PATCH] Support for ASEM UPS on Linux/i2c
On Jul 7, 2014, at 10:10 AM, Giuseppe Corbelli <giuseppe.corbelli at copanitalia.com> wrote:
> On 07/07/2014 15:03, Charles Lepple wrote:
>> Giuseppe Corbelli <giuseppe.corbelli <at> copanitalia.com> writes:
>>
>>> Nevermind, please try the one attached, just created by
>>>
>>> git diff -p 80d9534 configure.ac data/driver.list.in