similar to: Rails 1.1 - model access from view broken

Displaying 20 results from an estimated 10000 matches similar to: "Rails 1.1 - model access from view broken"

2006 Apr 14
1
rake test errors
I have Rails 1.1.2, ruby 1.8.4 and gentoo linux running kernel 2.6.15. Here are the errors: gregg@gregg2 ~/user/DMS $ rake test (in /home/gregg/user/DMS) /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ ordered_options.rb:2: warning: method redefined; discarding old []= /usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/ ordered_options.rb:11: warning: method
2009 Aug 05
1
ActiveRecord boolean false returning Nil
Hi All, I have a column type of boolean, and when the value in that column is set to ''false'' (eg. 0 for MySQL), it returns nil. I have tested this in the console, and it doesn''t exhibit this behavior there, only when running on Mongrel. I tried wrapping the accessor call to intercept a nil and set it to false for that attribute, but it doesn''t seem to be
2010 Nov 07
1
On Mac: undefined method `create_popup_menu' for #<Wx::TaskBarIcon>
Hi there, I got the following error every time when I tried right clicking the app icon on Dock. Env: Mac OS X 10.6 wxRuby: wxruby-2.0.1-universal-darwin-9 Error: undefined method `create_popup_menu'' for #<Wx::TaskBarIcon:0x1884be40> Backtrace: /Users/zhimin/Work/projects/testwise/vendor/source/darwin/gems/wxruby-2.0.1-universal-darwin-9/lib/wx/accessors.rb:50:in
2006 Nov 06
2
Eager Finder SQL
Hi, I just uploaded a Rails plugin that allows you to specify custom SQL when doing a find with associations (AKA eager loading). One of the problems I encountered when implementing the Chacha Underground (http://underground.chacha.com) was being able to use queries provided by the DBA to efficiently get all the informaion I needed to render a page. In some cases, I needed to go two or three
2007 Apr 03
2
CalendarCtrl.date not working?
I finally got my CheckListBoxes under control (thanks Alex& Phil) and have moved on to tackling the CalendatCtrl. This one seemed pretty easy when I was reading through the documentation but I cannot retrieve the selected date. I have the following code: def initialize... ... @calendar = panel.add(Wx::CalendarCtrl[]) panel.add(Wx::Button[:label => ''test'']) do
2006 Aug 20
0
Re: Problem with overriding rails accessor methods
On 8/20/06, Paul Corcoran <prcorcoran-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote: > > > Hello all, > > I just encountered something that is not what I would expect. I > overrode an accessor method in my model class and within this method I > did a "super" call which failed. Of couse my real method would be doing > more but here is the basic code that
2006 Mar 02
0
Cleaner code in rails view
Hi all. Saw this trick on the ruby-talk list and wanted to share my use of it in a Rails view. Some other code allowed a record to be posted to the DB w/o a good referential link. IOW, the FK in the record pointed to a missing record in the linked to table. The Rails view just spit out an attribute of the linked table and that caused the app to crash because table1.table2 was nill and
2006 Jan 19
2
Easy way to handle form input without a model class?
I have a couple forms that I''d like to be able to validate and automatically populate, but it shouldn''t be based on AR. In fact I often have a bunch of small forms that I can''t really justify writing a whole new model class for anyway. I''d like to validate the form input, and then use rails helpers to automatically populate the form if validations fail.
2010 Nov 17
2
Reference classes: accessor functions via 'getRefClass(...)$accessors(...)'
Hi there, I''d like to choose between an "static" and "dynamic" access of a reference class field, say ''a''. myObj <- getRefClass("Blabla")$new() Static: myObj$a Dynamic: myObj$a.get() where the function retrieves the data from a database (or some other location), stores it to a buffer and
2007 Sep 15
2
wxRuby 1.9.1 and id accessor consistency problem
Hi all, wxRuby 1.9.1 introduced great Rubish style accessors (x.label as a synonym for x.get_label). I just found that get_id has no corresponding Rubish style id accessor. For a CheckListBox or a StaticText (I haven''t checked for other kind of controls), id just returns the Ruby object_id. This is very confusing and not consistent with other accessors. Chauk-Mean.
2023 Jun 21
3
[PATCH 00/79] fs: new accessors for inode->i_ctime
I've been working on a patchset to change how the inode->i_ctime is accessed in order to give us conditional, high-res timestamps for the ctime and mtime. struct timespec64 has unused bits in it that we can use to implement this. In order to do that however, we need to wrap all accesses of inode->i_ctime to ensure that bits used as flags are appropriately handled. This patchset first
2002 May 22
0
Correction - RE: using winbind in pam.d/system-auth, doub le prompts for password
Er, The relevant part of my /etc/pam.d/login (on Debian Potato) actually looks more like this: auth sufficient pam_winbind.so auth required pam_unix.so use_first_pass Manuel Gomez -----Original Message----- From: Manuel Gomez [mailto:ERG@e-r-solutions.com] Sent: Wednesday, May 22, 2002 12:18 PM To: 'Gregg Lebovitz'; 'samba@lists.samba.org' Subject: RE: [Samba] using
2012 Jan 22
1
How to construct a formula
Hi, I need to construct a formula programaticly, and pass it to a function such as the linear mixed model lme. The help says it requires "a two-sided linear formula object describing the fixed-effects part of the model" but I do not know how to create this formula. I have tried various things using formula(x, ...), as.formula(object, env = parent.frame()) and as.Formula(x, ...)
2006 Mar 02
1
Fixture accessors broken for polymorphism, in need of redesign
Ticket 4052 (http://dev.rubyonrails.org/ticket/4052) just came through trac, which introduces the need for a better way to access fixtures. I believe the basic problem is the same as 3935 (http://dev.rubyonrails.org/ticket/3935) in that the accessor method which is constructed by the fixture call can''t infer the class name from the table name. The band-aid in 3935 was to allow you to
2007 Nov 06
2
[LLVMdev] Dynamic (JIT) type resolution
Hi Gordon, Gordon Henriksen wrote: > Nicholas, > > I guess you're trying to solve the fragile base-class problem by > deferring field offset calculations until JIT compilation time? > > No. I'm deferring field offset calculation until /execution /time. > Perhaps I'm missing something, but can't you accomplish this by using > external constants in
2005 Mar 11
2
howto: plot location, web search
Hi, new to the list, R and rpy. my first post. using rpy, i find this r.X11(height=3, width=6) allows me to preset the size of a subsequent r.plot(x, y) but i've been unable to find documention on related aspects, such as programatic control of the plot window location on the monitor, or programatic resizing of a plot once it is generated. Are these possible? In general I've
2007 Nov 06
2
Why is this view spec failing?
I can''t figure out why I am getting a failure. It renders out fine in the browser. <h1>New member</h1> <%= error_messages_for :member %> <% form_for(:member, :url => members_path) do |f| %> <fieldset> <legend>Member Info</legend> <p><label for="member[first_name]">First Name:</label> <%=
2018 Dec 13
1
[PATCH net-next 1/3] vhost: generalize adding used elem
On Thu, Dec 13, 2018 at 06:10:20PM +0800, Jason Wang wrote: > Use one generic vhost_copy_to_user() instead of two dedicated > accessor. This will simplify the conversion to fine grain accessors. > > Signed-off-by: Jason Wang <jasowang at redhat.com> The reason we did it like this is because it was faster. Want to try benchmarking before we change it? > --- >
2002 May 22
0
using winbind in pam.d/system-auth, double prompts fo r password
Greetings, Try using the "use_first_pass" directive in your pam.conf file (or the relevant file in /etc/pam.d/ - on my system it's /etc/pam.d/login). You'll no doubt find more information in the relevant (PAM) man pages. My /etc/pam.d/login line for winbind looks like this: auth required pam_unix.so use_first_pass Manuel Gomez -----Original Message----- From: Gregg
2023 Mar 08
0
Default Generic function for: args(name, default = TRUE)
Dear Gregg, Thank you for the fast response. I believe though that isGeneric works only for S4-functions: isGeneric("plot") # FALSE I still try to get it to work. Sincerely, Leonard On 3/8/2023 9:13 PM, Gregg Powell wrote: > Yes, there is a way to check if a function is generic. You can use the isGeneric function to check if a function is generic. Here's an updated version