I don't know my english but my javascript is very newbie, too much
newbie
¿ Is not this, the same or similar, that disable the sumbmit button at
the begining of onchange event and activate it at the end?...something
like:
<%= f.text_field :amount, onchange=>"disable_submit();" +
remote_fun
Jordon Bedwell wrote in post #1084597:
> On Thu, Nov 15, 2012 at 10:23 AM, Albert Catal
> wrote:
>> Easy and clean, thanks you
>
> If you want/need to prevent "enter" from submitting a form, you are
> doing it wrong and you could be be alienating some disabled people who
> do not use a mouse and r
Easy and clean, thanks you
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
Thanks for your response, sorry but my unknows go far away:
I have two entitys:
1- Views or Partial: and I undersant this: render :partial /shred/foo
2- Method/controller (X). now I place this method in
application_controller and the .js.rjs in views/application/X.js.rjs. It
works
But I do th
Hello, I'm new in Rails and much more in MVC, and I'm absolutly lost.
The question is more clearly this:
If I have a partial, than uses a controller/method (called X) for
requery itself via JS, and this partial is viewed in two screens ( two
controllers, menu and sarch). where do you place this c
Thanks for your time, but i am not able to make this working.
Where can I see the code, and the files (if conig/application.rb. or
where ever is), than explain how to customize the logger?
thanks again
(I am new in Ruby but not in Visual Foxpro, if somebody needs my help, I
can exchange knowl
Curtis wrote in post #979429:
> On Feb 3, 2011, at 2:57 AM, Albert Catal wrote:
>
>>>
>> super("ERROR>"+msg)
>> end
>> end
>>
>> this is in a file.rb in config/initializers/
>>
>> and raises the error I said
>>
>
>
>
> Did you read my other response about class methods?
Yes but
Curtis j Schofield wrote in post #979342:
> 2011/2/1 Albert Catal :
>>super(args)
>> end
>> def error(msg)
>
> #also - this may give you an error
> # i remember this as
> msg = %%ERROR#{'-'*5}>#{msg}%
> super
>
>> raises an error: [super: no superclass method `error' for
>>
>>
>>
What I did
¿ Is this solution accessible from Models ? "logger ("...") in a model,
¿reach this code ( class ActiveSupport::BufferedLogger)?
thanks you
I like this solution (http://railscasts.com/episodes/56-the-logger)
in environment.rb:
class Logger
def format_message(level, time, progname, msg)
"
Hello,
I whish configure logger, adding a prefix in all "logger.error(..)", a
prefix like "ERROR-->", to be able, then to search in
log file, easily.
And to do that I had the idea of reopen Logger class, like this:
- In a file placed in \initializers\ I put
def initialize(
10 matches
Mail list logo