Displaying 9 results from an estimated 9 matches for "local_variables".
2006 Jan 11
1
Stepping into debugger while in script/breakpointer
How do I step into/over the code while in a script/breakpointer console?
2013 Sep 06
1
How to get local variable name from object id or memory reference in ruby?
Follow the code :-
class Sample
def bar
p method(__method__).receiver # only `self` would do the trick.
end
end
n1=Sample.new # => #<Sample:0x13bc648>
n2=Sample.new # => #<Sample:0x13bc630>
n1.bar # => #<Sample:0x13bc648>
n2.bar # => #<Sample:0x13bc630>
But this is my try. I am looking for any method is available in
Ruby,into which say if I pas
2006 Jan 20
47
SQL Server datetime error
i have a problem with the datetime format of rails. i am unable to save
a dataset to the db. here''s the error message -- the original error
message was in german, so i translated it -- i get:
DBI::DatabaseError: Execute
OLE error code:80040E07 in Microsoft OLE DB Provider for SQL Server
Couldn''t convert a char-Datatype to datetime
HRESULT error code:0x80020009
2007 Dec 05
4
render :update and controller private methods
Probably asked and answered, but...
Why are controller private methods inaccessible inside the block
passed to render :update ?
This does not work:
class MyController < ApplicationController
def some_action
render :update do |page|
page.replace_html ''an_element'', some_private_method
end
end
private
def some_private_method
return
2006 May 08
17
partial problem
def my_controller
@variable = [{''myfield''=>''grey''},{''myfield''=>''blue''}]
end
#-------------------------my_view
<table>
<%= render :partial=>''my_partial, :collection=>@variable %>
</table>
#----------------------_my_partial
<tr>
<td><%=
2007 Sep 25
21
form_for and partials
I love form_for, but I really hate
<% form_for :person, @person, :url => {...} do |f| %>
...
<%= render :partial => ''form'', :locals => {''f'' => f}
...
<% end %>
I''ve been thinking of instead allowing
<% form_for :person, @person, :url => {...} do |f| %>
...
<%= f.partial ''form''
2007 Sep 02
17
A Proposal To Magically Remove ''params''
I have a magical proposal for the anti-magic web framework.
Controller methods do not use arguments and yet expect arguments. This
is handled through this params hash because we don''t know in advance
what parameters a client could pass to Merb. But in almost every
instance, it is too much to know all the query parameters - one
doesn''t care if the user threw in an extraneous
2009 Nov 13
0
Wine release 1.1.33
...th source alpha.
Piotr Caban (2):
jscript: Fix Error.toString() test.
jscript: Throw URIError in encodeURI function.
Rico Sch?ller (35):
d3d10: Improve d3d10_variable_type().
d3d10: Add matrix column major parsing.
d3d10: Improve parse_fx10_type().
d3d10: Parse local_variables.
d3d10: Implement ID3D10Effect::GetVariableByIndex().
d3d10: Improve ID3D10Effect::GetVariableByName().
d3d10: Add ID3D10EffectBlendVariableVtbl.
d3d10: Add ID3D10EffectDepthStencilVariableVtbl.
d3d10: Add ID3D10EffectRasterizerVariableVtbl.
d3d10: Add ID3D10Effe...
2010 Aug 25
18
Puppet hangs
Hello,
we have one puppet server managing approx servers, all FreeBSD.
The problem is that the puppet clients all hangs, one by one,
eventually. They will run for anything between an hour up to a week.
But eventually the all hang.
We really like puppet and want to keep using it. But the way it is now
is completely unusable. We''ve tried many versions, from 24.x, and now
2.6.1rc1. But