Displaying 20 results from an estimated 40000 matches similar to: "Controller Inheritance/Namespacing"
2006 Apr 27
2
problematic admin/views
ok, i have a pretty almost finished (frontend) blog, i have defined an
admin zone with authentication to add content, now im getting trouble
with the views for the controllers in the admin zone, here you can see
my file structure:
http://img284.imageshack.us/my.php?image=tmpviews6oq.gif
and my admin controllers like this:
controllers/admin/admin_controller.rb
class Admin::AdminController
2006 Jan 30
2
Modules, controllers and inheritance
Hi!
I was trying to cleanup my app and I runned into quite a problem. My
controllers in submodule do not seem to inherit things from base
class.
I have following setup:
app/controllers/
application.rb:
class ApplicationController
admin/
admin_controller.rb:
class Admin::AdminController < ApplicationController
include LoginEngine
include UserEngine
2006 Jan 13
1
ActiveRecord: using with multiple threads/DB connections
Hi,
I''m totally new to Ruby and Rails and I''m trying to set up a prototype
web site. Unfortunately, I''m having problems with ActiveRecord using
multiple threads.
What I want to do is fairly simple. I have a Controller that receives
and saves data from the web in the DB, but once that''s done I want to
process this data in another thread and then save the
2016 Aug 07
1
Tripp-Lite SMART1500LCDT
On 08/05/2016 03:03 PM, Marco Walther wrote:
> On 08/05/2016 01:36 PM, Stuart D. Gathman wrote:
>> On Fri, 5 Aug 2016, Marco Walther wrote:
>>
>>> On 08/03/2016 05:25 AM, Stuart Gathman wrote:
>>>> I've made some progress getting this Tripplite to work:
>>>> http://gathman.org/2016/07/30/Standard_Schmandard/
>>>>
>>>>
2016 Aug 05
2
Tripp-Lite SMART1500LCDT
On Fri, 5 Aug 2016, Marco Walther wrote:
> On 08/03/2016 05:25 AM, Stuart Gathman wrote:
>> I've made some progress getting this Tripplite to work:
>> http://gathman.org/2016/07/30/Standard_Schmandard/
>>
>> Basically, plug it into a USB hub that actually implements USB2.0, then
>> power cycle the port when it hangs. It does seem to be a hardware
>>
2006 Jul 31
0
How do I make controller hierachies? Inherit or route them?
I would like a controller hierarchy with urls that look like...
/admin/documents
where /admin is handled by the admin_controller and documents by the
document_controller. I like the controller inheritance technique
discussed on the web[1], but I get a template not found error message.
I also have to define the route in the routes.rb file, which, according
to the author, is not supposed to
2016 Oct 10
4
CP1500AVRLCD NOCOMM
I tried viewing your link, but it returns a 404 error. It also doesn't seem
to have a valid certificate. Could you send the correct link please?
On Thu, Oct 6, 2016 at 9:14 PM, Stuart Gathman <stuart at gathman.org> wrote:
> On 10/06/2016 07:26 PM, Lane Russell wrote:
>
> ??
> Syslog after server loses sight of UPS:
> Oct 6 17:29:01 kvm usbhid-ups[3529]:
2005 Jul 12
1
Tripplite and newhidups
--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I'm trying to set up a TrippLite Internet Office 750 just like this guy:
http://lists.alioth.debian.org/pipermail/nut-upsuser/2005-June/000007.html
Here's the output of a few interesting commands
stuart@tyro:~+ dpkg-query -l nut nut-usb| tail -n2| awk
2020 Sep 24
0
[EXTERNAL] Re: UPS Losing Connection
Update from my end:
I found the old thread where I posted a possible resolution for a similar issue on CentOS 7.6 with the same protocol (2012):
https://alioth-lists.debian.net/pipermail/nut-upsuser/2019-June/011451.html
https://alioth-lists.debian.net/pipermail/nut-upsdev/2019-June/007440.html
Some of my initial steps were probably unnecessary, but through a combination of configuration tweaks
2016 Aug 05
0
Tripp-Lite SMART1500LCDT
On 08/05/2016 01:36 PM, Stuart D. Gathman wrote:
> On Fri, 5 Aug 2016, Marco Walther wrote:
>
>> On 08/03/2016 05:25 AM, Stuart Gathman wrote:
>>> I've made some progress getting this Tripplite to work:
>>> http://gathman.org/2016/07/30/Standard_Schmandard/
>>>
>>> Basically, plug it into a USB hub that actually implements USB2.0,
2006 Jan 14
1
controller issue with rails? (osx)
hello,
I created a table in MySQL and generated a scaffold against the database
with a product named "article" and the controller named "admin", but
when i try to load up the /admin view i get the following stack trace.
I am new to rails so I am not sure about the nature of this error.
Stack trace as follows.
BR_joe
NameError in Admin#index
uninitialized constant Article
2016 Aug 05
0
Tripp-Lite SMART1500LCDT
On 08/03/2016 05:25 AM, Stuart Gathman wrote:
> I've made some progress getting this Tripplite to work:
> http://gathman.org/2016/07/30/Standard_Schmandard/
>
> Basically, plug it into a USB hub that actually implements USB2.0, then
> power cycle the port when it hangs. It does seem to be a hardware
> problem with the USB controller.
Finally an idea;-) I had the same problem
2020 Sep 24
3
UPS Losing Connection
On 9/23/2020 1:09 PM, Stuart D. Gathman wrote:
> I solved this problem a few years back.
>
> https://github.com/sdgathman/trippfix
>
> The short answer is USB is broken on the model (but the power management
> is excellent, handling switchover to generator power without a hitch).
>
> The workaround is to do a usb port power off when the Tripplite USB
> hangs. But hubs
2016 Dec 09
0
Keeps losing connection with UPS (local usb connection)
Hello fellow victim of Tripplite braindead USB! There is a solution!
My blog on diagnosing the problem:
https://gathman.org/2016/07/30/Standard_Schmandard/
My blog on packaging the solution:
https://gathman.org/2016/11/09/Packaging/
Solution on github:
https://github.com/sdgathman/trippfix
Sadly, you will have to buy a USB standard conforming powered hub to
make the Tripplite work. These are
2006 Sep 06
5
admin controller problem
I am reading the agile web development with rails book, and starting to
create the depot. I am getting the below error after setting up the
"ruby script/generate scaffold Product Admin" does anyone know what the
problem is?
NameError in AdminController#index
uninitialized constant Mysql
RAILS_ROOT: ./script/../config/../
Application Trace | Framework Trace | Full Trace
2016 Aug 03
2
Tripp-Lite SMART1500LCDT
I've made some progress getting this Tripplite to work:
http://gathman.org/2016/07/30/Standard_Schmandard/
Basically, plug it into a USB hub that actually implements USB2.0, then
power cycle the port when it hangs. It does seem to be a hardware
problem with the USB controller.
On 05/24/2016 09:06 AM, Charles Lepple wrote:
> On May 22, 2016, at 10:18 AM, Stuart Gathman wrote:
>> I
2006 Nov 04
0
Controllers and Namespaces (no problem, just questions)
I''m a little late on finding this article:
http://habtm.com/articles/2006/07/01/if-your-models-arent-namespaced-why-should-your-controllers-be-or-how-i-learned-to-stop-worrying-and-love-the-crud
This idea does not sit well with me and am curious as to the Rails roadmap.
I''ve seen a couple things demonstrated in examples (Rails Book, api) that
later turn to become deprecated. As
2006 May 04
1
request: add TCP buffer options to rsync CLI?
We see absolutely dismal performance from Canberra to Perth via
Aarnet or Grangenet (gig connections across the country). With
standard rsync on a tuned tcp stack, we see about 700k/s. I started
playing with the --sockopts and have increased the performance to
1.4M/s which is better, but still way off the pace.
There are similar patches for ssh at
2006 Oct 16
0
Restful routes, not repeating yourself and non-standard rest actions best practices
So I''ve recently started playing with the restful routes support in
edge rails, converting a few of my controllers to support all the
standard operations.. One thing that''s been bothering me, however, is
the following:
Before using restul routes, I would define an edit method in my
controller which would be responsible for both creating new objects as
well as editing
2006 May 10
4
Single Table Inheritance problem
I have two tables I am using single table inheritance with: Page and
Item. "Page" has many "Items"; "Item" belongs to "Page".
Item Model:
class Item < ActiveRecord::Base
end
class Article < Item
belongs_to :page
end
Page Model:
class Page < ActiveRecord::Base
end
class Issue < Page
has_many :articles
end
In my controller, when I