Displaying 20 results from an estimated 500 matches similar to: "Work around for problems with error_message_on"
2005 Dec 27
0
Re: RESOLVED: Overloading error_message_on method in ActiveRecordHelper
Leaving the body of the method the same as the default still throws
the "stack level too deep" error. As a matter of fact, it only
disappears if I comment out the ''require'' in line 1.
As it turned out, it was the method definiton itself that caused
problems. Ruby doesn''t have keyword arguments, but I tried calling the
method as if it had. But when I changed
2005 Dec 23
1
Overloading error_message_on method in ActiveRecordHelper
Hello all
I would like to overload the error_message_on method in the
ActiveRecordHelper module in order to emit a span tag instead of a div
tag. I try to achieve this by way of plugins: Under vendor/plugins
I''ve made a error_messages_on_fix directory, containing init.rb like
this:
---
require ''active_record_helper_fix''
---
..and a lib directory with
2007 Jan 03
2
error_message_on broken?
Hi,
in my app, using the error_message_on form helper like this:
<label for="user_name">User name:</label>
<%= error_message_on ''user'', :name %>
<%= f.text_field :name %>
generates the following error:
undefined method `errors'' for :user:Symbol
I am using edge revision 5813 and the simply_helpful plugin. Is there a
way to fix this?
2006 Jul 17
0
error_message_on / error_messages_for
Hi,
just a simple question between error_message_on / error_messages_for ...
Well, if you use error_messages_for in your web page, there is no
problem even if anObject==nil (for example , the first time you load
your form) whereas error_message_on must be use with an instanciated
object ...
So, you always has to double check if anObject is not nil before using
error_message_on ?
I
2005 Sep 25
2
Problem issue with belongs_tohas_one and error_message_on
Hello
I have a problem with relationship with belongs_to - has_one and with
error_message_on
I have splitted one huge table users into two tables user and profile.
In users I''m keeping main fields like id,email,password and in profile there are
the rest of fields.
Table users:
id,email,password
Table profiles:
id,user_id,publicname, and more ...
My models are:
- user.rb
has_one
2008 Jul 19
0
[ wxruby-Bugs-21273 ] Segmantation fault in textctr.append_text
Bugs item #21273, was opened at 2008-07-19 17:51
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=21273&group_id=35
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Roman Zawada (zwadar)
Assigned to: Nobody (None)
Summary: Segmantation fault in textctr.append_text
Initial Comment:
I''m using window with one
2007 Jan 22
0
[ wxruby-Bugs-8068 ] TextCtrl#append_text doesn''t work when text is in UTF8
Bugs item #8068, was opened at 2007-01-22 20:27
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=8068&group_id=35
Category: Incorrect behavior
Group: current
Status: Open
Resolution: None
Priority: 4
Submitted By: Alex Fenton (brokentoy)
Assigned to: Alex Fenton (brokentoy)
Summary: TextCtrl#append_text doesn''t work when text is in UTF8
2008 Dec 11
1
help needed regaring Acts As Taggable On Steroids
Hello,
In my rails application, I have a book model.
I want to add tags. For that I have installed
acts_as_taggable_on_steroids from this link
http://agilewebdevelopment.com/plugins/acts_as_taggable_on_steroids
and do as the readme file.
This is my Model :
class Book < ActiveRecord::Base
acts_as_taggable
end
Here is my ApplicationHelper :
module
2009 Jul 07
10
link_to, how do you combine url options and html_options?
I have a link-to that I wish to look somewhat like this:
link_to "link here", new_object_path,
:method => :post, :confirm => ''Press OK'', #url
options
:class => "css_class", :id => "css_id" #html
options
In any case I can either get the url_for options to work or the html
options to work, but
2006 Dec 17
12
Best practices for conditional display in views?
Hi.
I am writing an application that has a lot of boolean conditional
display logic, like this:
<% if user.description then %>
<p class="css_class"><%= user.description %></p>
<% end %>
Often the displayed content is more complex than the above, and to clean
up my views I am trying to pull a lot of this sort of thing into
partials.
However, the problem
2010 Nov 16
15
acts_as_taggable, undefined method 'empty?'
I''ve tried out ''acts_as_taggable'', ''acts_as_taggable_on'' and
''acts_as_taggable_on_steroids'' and all of them output "undefined
method ''empty?''" with the tag_cloud action.
I am following the guides precisely. Yet I can find no references to
this error anywhere, so I must be doing something wrong...
I am on
2006 Jul 21
1
validates_acceptance_of weirdness
On my registration form I have a checkbox for a waiver. In the model I
have the statement:
validates_acceptance_of :waiver, :on => :create, :message => "must be
accepted"
In the view:
<%= check_box_tag("waiver") %>
<%= error_message_on "user", "waiver", "Waiver "%>
For some reason validate is accepting everything when the
2006 Jan 04
1
[SOLVED] Am I going too far or Rails is just confusing?
On 1/4/06, John Indra <ji.milist@gmail.com> wrote:
> However, it doesn''t work for me. Following your article, I change my
I have found the source of the problem. I follow the solution provided by
http://blog.teksol.info/articles/2006/01/03/belongs_to-user-interface-take-ii
It''s a nice solution, however it contains typo :)
There is indeed no error_messages_on method,
2006 Aug 19
2
[Bug 1220] Fix error messages for multiple mechanism GSSAPI libraries
http://bugzilla.mindrot.org/show_bug.cgi?id=1220
Summary: Fix error messages for multiple mechanism GSSAPI
libraries
Product: Portable OpenSSH
Version: 4.3p2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Kerberos support
AssignedTo:
2005 Aug 01
1
wiki's howto and mailman
hello, i've implemented this on my mailserver : http://wiki.dovecot.org/moin.cgi/DovecotPostgresql
but now mailman is broken. This is the error i got from postfix:
Recipient address rejected: User unknown in local recipient table (in reply to RCPT TO command)
of course the user mylist at mydomain.org does not exsist on the postgres db, but how i can fix this issue? someone wanna help,
2007 May 24
1
How do I show the selected values in options_for_select? Not as simple as it sounds.
How do I show the selected values in options_for_select? I have a
Service model and a AccessControl model. When a user edits a Service I
want the services access_controls to be pre-selected.
Models:
Service has_many AccessControls
AccessControl belongs_to Service
application.rb:
$types = Array["Athens", "htpasswd", "IP", "None", "Other",
2009 Feb 03
1
PowerPoint 2007 filter
Hi,
I'm trying to write the PowerPoint2007 filter in the same manner that I
did for *.docx and *.xlsx but I'm getting the following error when I tru
an index.
The document is called:
Indexing "/Frisk in Power Point.pptx" as
application/vnd.openxmlformats-officedocument.presentationml.presentation ... caution: filename not matched: ppt/notesSlides/notesSlide*.xml
caution:
2008 Aug 12
8
Who am i? and where is C:?
Hello,
I just started using linux a cpl days ago, still trying to wrap my head around things and of course not willing to part entirely with windows :P
I'm a student studying Software dev (c++, Java) and Database design.
I installed Wine just now, and notepad++ i directed installation to C:/Program Files/Notepad++, under install ticked %APPDATA% as i assumed Wine would actually create a
2007 Jun 17
2
Wx::TextCtrl and wxMSW
Hey Alex,
Found a solution to the problem that was occuring with wxMSW and the
Wx::TextCtrl, have yet to verify that this will work in linux, but my little
trick to the matter, was simple, thanks to the things that are provided with
both Wx::TextCtrl, and Wx::Window classes.
I''m providing this bit of information for thoes who may have trouble with
dealing with Wx::TextCtrl, _AND_ have
2006 Jun 06
1
Strange Error after some hour of inactivity.
Hi,
in near future planing migrate our E-mail server to new hardware.
Decided try dovecot as IMAP and POP3 server.
Compiled latest dovecot-1.0.beta8 version on Linux Fedora Core 3 machine (2.6 kernel).
Users database are on PostgreSQL server.
Everything working fine except some issues.
After some hour of inactivity (POP3 or IMAP) then connecting to check e-mail got this error:
invalid I/O fd 8,