Displaying 20 results from an estimated 6000 matches similar to: "partial problem"
2006 Apr 13
2
acess local variables from helper?
if I call a helper method from inside a partial, it doesn''t appear to have
access to the partials local variables. is there a way to make them avilable
without passing them as parameters?
here''s a simple example
# in the view
<%= render :partial => "my_partial", :locals => :value => 2%>
# _my_partial.rhtml - raises "undefined local variable or
2006 Jul 20
6
replace_html + javascript
Hi all,
This is my first post to the list, so I hope it gets through and I
don''t do anything wrong :)
Here''s the issue I''m having...
I have an rjs that''s doing:
page.replace_html ''myid'', :partial => ''my_partial''
And in my my_partial I have:
<script type="text/javascript">
2007 Dec 03
3
Request param type of array
Hello.
I have tested such form:
<form method=''POST''>
<input type=''hidden'' name=''myfield'' value=''value1''>
<input type=''hidden'' name=''myfield'' value=''value2''>
<input type=''submit'' name=''_submit''
2006 Aug 11
5
actionmailler corrupting emails
Hi All,
I have a problem with actionmailer corrupting my html emails. It is
adding the character ''3D'' before any quotes (single or double) in my
source and smattering ''='' characters throughout as well. Very
strange. Here''s an example from one of the emails:
________________
<body>
<div id=3D''wrapper''>
<div
2006 Apr 08
7
text_field and arrays
Hi,
I''m trying to do a bulk update on an array with the helper text_field.
I''m trying to create an inputfield for every object in the array, but
I''m not getting it right...
example:
class ClassA
@arrayB[]
end
HTML (code with error):
<% 0.upto(9) do |index| %>
<%= text_field ''ClassA'', ''arrayB[index]'' %>
non
2012 Jun 19
1
Reference classes and memory consumption
Dear All,
It seems that reference classes consume a lot of memory which became a problem for my rather extensive simulation.
I prepared a small example. An instance of this minimal class uses about 20K on disk.
rm(list=ls(all=TRUE));
MySmallClass = setRefClass("MySmallClass",
fields = list(
myField = "numeric"
),
methods = list(
initialize =
2011 Jan 26
1
How to call subset in a for loop?
Dear all,
I have a data frame 'myDf', in which one of the fields 'myField' can have
several possible values. To extract the observations for which it has value
"A", I can do:
subset(myDf, myField="A")
However, when I try to do this within a loop, it doesn't work, it returns
everything, and not a subset
for (currField in c("A", "B",
2006 Jul 13
6
Render partial questions
Hello,
what is the preferred way to do this...
I have 2 controllers. Each has an index action.
Now I want to include the rendered index view from TwoController in the
index view of OneController.
But a render :partial doesn''t execute the TwoController index action
which sets variables for its index view.
So maybe you can give me a short example how to do it.
Thank you
Markus
2006 Jun 22
4
rendering partials in layouts?
Hello all,
Forgive me if this is a really stupid question. How do you render
partials in a layout? It''s probably way easier than i believe it to be.
thanks!
--
Posted via http://www.ruby-forum.com/.
2010 Jun 23
2
About normality tests...
Hi all,
I have two very large samples of data (10000+ data points) and would
like to perform normality tests on it. I know that p < .05 means that
a data set is considered as not normal with any of the two tests. I am
also aware that large samples tend to lead more likely to normal
results (Andy Field, 2005).
I have a few questions to ensure that I am using them right.
1) The Shapiro-Wilk
2006 Jul 17
3
trouble with render :partial from controller
Hi,
I''m definitely a newbie on rails here. My very first attempt has gone
well up until this point, but for some reason, when I try to do a render
partial, I''m getting a full screen refresh.
I did a render partial just fine from an rhtml file. This problem is
specifically when calling render :partial => "my_partial" from the
controller''s .rb code.
2006 Apr 27
12
Execute controller function from RJS
Hi all,
I wonder if it is somehow possible to execture or redirect to a
controller function from RJS?
Right now I do:
def foo()
render :partial => ''executeagain''
end
_executeagain.rhtml
<script>
new Ajax.Updater(''elmntID'', ''/test/foo/'', {evalScripts:true});
</script>
This will loop I know :)
How can I achieve the same
2004 Sep 02
2
Polycom Microbrowser
I have just spent the morning playing around with a Polycom IP600's
microbrowser. Everything is working pretty well. In answer to the
question of what type of XML it runs, it appears to be more or less
XHTML-compliant. I have created a basic set of web pages allowing users
to clock in and out against our MySQL timeclock system, running a PHP
back-end. It's running like a champ.
2006 Apr 26
10
Rails Document must be more detailed otherwise...
In java/c++ the method signature provide a good details on which parameters
the method accept, but in rails the ability to send hash as parameters make
it impossible
to know which parameters can be send.
This ability make the rails API doc a must to be full of details and not
supply partial examples of usage.
When for example I see *link_to_remote*(name, options = {}, html_options =
{})
I would
2009 Mar 25
1
SIPPEER equivalent for users.conf ?
Hi,
In sip.conf, it's possible to add a line such as
setvar=MYFIELD=foo
and access this value from diaplan with SIPPEER function.
1. Which function is available to access values in users.conf such as
vmsecret ?
2. Is it possible to extend users.conf with custom keys/values ?
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 25
3
file upload and check width and height of the picture
i have an file upload in my rails app and i''m saving the picture in the
filesystem.
i need to validate if the uploaded picture have a certain width and
height.
how can i do this
thank you very much
--
Posted via http://www.ruby-forum.com/.
2006 May 15
4
Other databases...
I''m a newbie to Ruby and I was wondering if Ruby on Rails will work with
databases that has a ODBC/JDBC driver or does it ONLY work with the
databases that it list in it''s documentation?
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 May 14
3
Mac OS X and Uninitialzed Constant Mysql
Development Platform:
ruby 1.8.4
Rails 1.1.2
mysql "gem" 2.7
Mac OS X (10.4.6), 64-bit
Mysql 5.0.19-standard (64-bit)
Lighttpd, 1.4.11
I''m trying to startup a simple test rails app against mysql. Rails
starts up fine and my pages render successfully, until a DB access is
made. I''m getting a "uninitialized constant Mysql". I''ve searched,
but
2009 Apr 28
0
google adsense breaks render :partial =>
Hey everybody, i''ve got a control that returns a partial, no biggie.
Except when that partial contains the javascript for my adsense account.
Then the partial renders correctly, and then quickly replaces my page
with nothing by the ad. When i take away my adsense js, everything works
great. Has anyone encountered this before, or know how to get around it?
def submit_remote_form
render
2006 May 01
4
When to make a new controller
Hey all,
Ok this is probably a newb question, but I haven''t been programming with
MVC for very long, and I''ve been wondering what the general opinion is,
or best practices, for making a new controller. Like what cases would
you need a new controller for and what cases can you just put everything
into one controller?
Thanks in advance,
Randal
--
Posted via