Displaying 20 results from an estimated 37 matches for "shnelvar".
2010 Jun 08
8
rails, ajax, json, and script
Could someone please demonstrate the code to send both json (or xml) AND
javascript (to be executed) in a single Ajax request?
Is this even possible?
--
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
2009 Dec 25
18
rescue_from ActionController::RoutingError II
...details
# Uncomment the :secret if you''re not using the cookie session store
protect_from_forgery # :secret => ''34e000fc7cc2daeae150a89535f7f87d''
# Be sure to include AuthenticationSystem in Application Controller
# instead
include AuthenticatedSystem
#Shnelvar
debugger # This one gets hit
#neither rescue_from seems to work
rescue_from ActionController::RoutingError, :with => :route_not_found
# rescue_from ActionController::RoutingError, :with => :render_404
protected
def route_not_found
debugger #this one does not
render :text...
2010 Jul 28
6
FXTextField.connect(SEL_CHANGED)
When I do an assignment to the text in a FXTextField, SEL_CHANGED is not raised.
The text is changed on the screen.
How do I detect that the text has been changed and/or ... how do I raise SEL_CHANGED?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100728/e0d169e5/attachment.html>
2010 Aug 17
2
SEL_UPDATE not responsive
I have read what I could about SEL_UPDATE and I understand that the block(s) that get called "from" SEL_UPDATE only get called when "there is no more work to do".
I took the splitter.rb example that comes with FXRuby. I put in a "puts" in one of the SEL_UPDATE blocks and I get about 4 a second. Not awful ... but ... why is it so slow?
In my code which is ... more
2010 Feb 19
3
Hooking validates
I want to hook the validation routines so that I can flag html labels
and change their color to better indicate which fields need to be
corrected in a form.
Is there a way to do this conveniently and/or conventionally?
--
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
2010 Dec 21
5
Rails, Ruby, haml, metaprogramming problem
In HAML I have hundreds of lines like the following:
- xyz = someFuncThatReturnsString(''xyz'')
and elsewhere
%div{''id'' => xyz}
The above lines work fine.
- - -
Attempting to keep things DRY (Don''t repeat yourself) I want to do
something like
- eval(otherFuncThatReturnsString(''xyz''))
where
2010 Feb 05
7
I'm having trouble with Routes II
I have narrowed my problem in a prior topic (I''m having trouble with
Routes) to the fact that I get the problem, below only when I reload my
page. Clicking on links to go to the pages I want ... I seem not to
have problems.
Given that it seems to be a reload that is generating an "/undefined"
path somewhere ... can anyone suggest what I should be looking for to
fix the
2011 Jan 02
7
Rails, .swf, .flv
I have the following HAML code
ul{ ''id'' => tutorials_ul }
%li
%a{''href'' => ''/videos/create-command-001.swf''}
''Edition swf''
%li
%a{''href'' => ''/videos/create-command-001.flv''}
''Edition flv''
When the user clicks on
2010 Feb 11
4
recursive expansition of <% ... %>
In a controller I have
@message = "The size is <% @a.size %>."
In the view I have
<%= @message %>
which, sadly, produces
The size is <% @a.size %>.
rather than, say,
The size is 4.
If I try
<%= <%= @ message %> %>
I get a syntax error.
Is there a solution?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
2009 Dec 23
8
Where did this value in a form come from?
Newb here.
I have a form and a value that is being displayed ... and I have no idea
where the value came from.
I have done a
<%= debugger; '''' %>
in the form and, indeed, the debugger stops at the statement.
I have tried to trace through the code to see where the value came from
... and I gave up.
So ... what in Rails initializes the fields of a form?
--
Posted via
2010 Dec 01
6
Mongrel, .htaccess, cpanel, rewrite, Mongrel::HttpParserError
I just installed my RoR application on my ISP''s server.
This is a Cpanel environment and it creates a .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^xyz.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.xyz.com$
RewriteRule ^(.*)$ "http\:\/\/127\.0\.0\.1\:12001\/$1" [P,L]
in a public_html directory. (I changed my domain name in the text above
to xyz because we are
2010 Feb 08
3
Double render/redirect philosophy
Ok, I think I understand why RoR will flag an attempt double render in
an action.
What I don''t understand is the philosophy of render and redirect_to.
Specifically, why isn''t a return implicit in both those methods?
Or, I guess, more to the point ... what are the advantages of writing
code in the action after a render/redirect_to?
--
Posted via http://www.ruby-forum.com/.
--
2010 Jul 09
8
Repository of sample FXRuby programs?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Repository of sample FXRuby programs?</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
2010 Feb 18
5
Converting hash to option string
Is there a good way to programmatically convert
{:a=>''b'', :c=>''d''}
to
''a=b c=d''
?
Rails seems to do this knid of thing "all over the place".
I see reverse_merge and similar functions ... but I wonder if this is
canned behavior somewhere.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
2010 Jul 20
1
ruby\samples\FXRuby\splitter.rbw
...ider does not move.
The right hand slider does not do that. When I move it ... it moves the left hand slider.
How do I make the right hand slider behave like the left hand slider?
- - - -
On a slightly different note, what is the difference between a .rb extension and a .rbw extension?
Ralph Shnelvar
2010 Mar 06
7
form_for, submit, and parameters disappearing
Consider the following:
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2010 Jul 07
4
Haml ... ending a line with a | (vertical bar)
I don''t know if HAML questions are appropriate here ... but here goes.
How does on end line to be rendered with a vertical bar (|) ?
The vertical bar is a line continuation, aparently.
Doing \| cause the vertical bar to be emitted ... as well as the
backslash.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
2012 Jan 01
2
Calling a function inside of (function($) {})(jQuery);
...When I wrap it, Firebug reports that set_priceKind_global is undefined.
How do I expose set_priceKind_global as a function that the onclick can trigger? Or, alternatively, modify the onclick so that the function can be called?
Is there a javascript/jQuery forum that you can recommend?
Ralph Shnelvar
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-...
2010 Jan 18
5
Re: puts & logger ... flush immediately
Marnen Laibow-Koser wrote:
> Ralph Shnelvar wrote:
>> newbie here ...
>>
>> I am tracing logic putting puts and logger.info calls in my code.
>>
>> I _think_ Rails is buffering output so that I can''t see what happens
>> until I close out webrick.
>
> But you are probably wrong. If you wa...
2010 Feb 16
7
YAML, UTF-8, TextMate, Notepad
....collect { |l| l.to_s
}.sort; end end
end
end
# You need to "force-initialize" loaded locales
I18n.backend.send(:init_translations)
AVAILABLE_LOCALES = I18n.backend.available_locales
RAILS_DEFAULT_LOGGER.debug "* Loaded locales:
#{AVAILABLE_LOCALES.inspect}"
#Shnelvar: Remove UTF-8 indicator bytes so that YAML::load works
AVAILABLE_LOCALES.each do |localization_name|
# localization_name is, e.g. "de"
localization_name_dot_yml = localization_name + ''.yml''
localization_file_name =
File.join(''lib/locale'',l...