similar to: partials or helpers: which to use?

Displaying 20 results from an estimated 40000 matches similar to: "partials or helpers: which to use?"

2016 Apr 11
1
Optimization bug when byte compiling with gcc 5.3.0 on windows
all.equal.eigen() should also accommodate complex vectors, right? Ravi ________________________________________ From: R-devel <r-devel-bounces at r-project.org> on behalf of Martin Maechler <maechler at stat.math.ethz.ch> Sent: Monday, April 11, 2016 3:08 AM To: William Dunlap Cc: r-devel; Jeroen Ooms Subject: Re: [Rd] Optimization bug when byte compiling with gcc 5.3.0 on
2016 Apr 04
2
Optimization bug when byte compiling with gcc 5.3.0 on windows
>If I recall correctly, some eigen vectors had their >direction flipped (negative values became positive and vice versa). >Did you notice anything of this kind when running 'make check' and >'make check recommended' ? It is important to us that numeric results >are reproducible between versions of R. I think that any code that depends on the direction of an
2016 Apr 11
0
Optimization bug when byte compiling with gcc 5.3.0 on windows
>>>>> William Dunlap via R-devel <r-devel at r-project.org> >>>>> on Mon, 4 Apr 2016 12:26:38 -0700 writes: >> If I recall correctly, some eigen vectors had their >> direction flipped (negative values became positive and >> vice versa). Did you notice anything of this kind when >> running 'make check' and
2007 Jul 16
0
Partials vs. Helpers
I have several partials containing dynamic codes (already memcached all the fragments as best I could), which I reuse ( render :partial => "stuff.rhtml" ) a lot within a single action call. For example, I have a partial which defines how an entry is to be formated in HTML. I have 40 entries on a page, so the partial is rendered 40 times in a single action. Not knowing the
2005 Nov 16
3
controller before_filter issues
Hi, Some controller filters: before_filter :require_logged_in, :only => [:create, :new, :confirm] before_filter :init_players, :only => [:create, :new, :confirm] The first one, you guessed it, redirects a user if he''s not logged in. Now when I hit this page and I''m not logged in, the 2nd filter gets executed and throws an error, because it depends on the user
2006 Apr 02
16
12 / 16 = 0
Hi, Just thought it was weird that Ruby doesn''t automatically cast ints to floats. Seems so un-rubyish irb(main):006:0> 12/16 => 0 irb(main):007:0> 12.to_f / 16.to_f => 0.75 Jeroen
2012 Sep 05
2
Partials and helpers
Hi, Is there any reason why helpers cannot render partials? I would like to do something like this in the layout: <body> <%= magic_header %> <%= yield %> </body> and then have a magic_header helper def magic_helper ...do some magic... render partial: "magic_helper" end Why is this wrong? Cumprimentos, Luís Ferreira -- You received this
2005 Oct 17
8
Using active record for SELECT MAX(column) FROM ...
Hi, Is there an easy way of querying an active record for a maximum column value? I need to do queries like: SELECT MAX(salary) FROM employees TIA, Jeroen
2006 Mar 22
9
render partial from withit mail template
Hi, I''m trying to include a partial in an email template but it throws me this: undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #12): 11: 12: <%= render :partial => ''footer'' %> I guess email views are a little different from normal ones as they don''t seem to have a access to a proper controller (?)
2006 Apr 15
1
Right way to pass conditionals to partials
Hi All, I have some partials that need to be rendered a bit differently depending on the context. To make matters worse, sometimes these partials are including other partials, that I''d like to control from the main template. These partials are templates that look similar in different contexts, but have different controls depending on where they''re being rendered. I
2010 Apr 15
0
[announce] yeroon.net/ggplot2 web application v0.2
A new version of the ggplot2 web interface has been released. Info and a demo video are available here: http://www.stat.ucla.edu/~jeroen/ggplot2/. The new version has a lot of new features, like advanced data import, integration with Google docs, converting variables from numeric to factor to dates and vice versa, and a lot of new geom's. For those that missed it: http://yeroon.net/ggplot2
2006 Jul 16
1
Helpers for partials too ?
MainController implies main.rhtml, which will automatically have access to the methods inside MainHelper (in \app\helpers\main_helper.rb). Should not the partial templates called from main.rhtml via <%= render :partial => ''partial'' %> also have access to the methods in main_helper ? I have tried <% display_dates = create_display_dates(@events) %> and <%
2005 Nov 17
7
render :partial in mail template
Hi, Is it possible to render a partial template from within a mail template? I get the following error undefined method `controller_path'' for SupportMailer:Class Extracted source (around line #8): 5: 6: <%= @url %> 7: 8: <%= render_partial ''sig_admin'' %> Jeroen
2006 Mar 16
3
inserted_at seems buggy in production mode?
Hi, I''ve got a table with an inserted_at column. When I insert a record it automatically injects the current date/time, all is well. Then when I insert a second record, it uses the exact same timestamp that is used in the first record. This behavior only seems to occur in production mode. When I restart the server, the problem goes away but then immidetatly occurs again on the
2020 Jan 22
2
Inlining + CSE + restrict pointers == funtimes
At a high level, EarlyCSE should be intersecting the metadata of instructions that it combines. If it doesn't, and also doesn't drop the metadata, that seems like a bug, regardless of anything else. On 1/22/20 9:30 AM, Jeroen Dobbelaere wrote: Hi Neil, Hall, - as far as 'C' is concerned, this is input code is valid, as the pointers are not used to modify objects. - as far as
2016 Aug 31
4
Define which host to use when direct link not possible?
On 30.08.2016 17:37, Guus Sliepen wrote: > On Tue, Aug 30, 2016 at 02:38:16PM +0200, Armin Schindler wrote: > >> we use a meshed VPN with TINC to connect 7 offices. >> Some office are in other countries and use other ISPs. The connection >> between some ISPs (peering partners) are not that good. This means we >> have packet loss between those direct connections.
2016 Aug 30
0
Define which host to use when direct link not possible?
On Tue, Aug 30, 2016 at 02:38:16PM +0200, Armin Schindler wrote: > we use a meshed VPN with TINC to connect 7 offices. > Some office are in other countries and use other ISPs. The connection > between some ISPs (peering partners) are not that good. This means we > have packet loss between those direct connections. > > To avoid this direct connection, I would like to tell TINC
2016 Aug 31
0
Define which host to use when direct link not possible?
On Wed, Aug 31, 2016 at 10:47:01AM +0200, Armin wrote: > >You can set IndirectData = yes in hosts/office-2 on hosts/office-1, and > >vice versa, to prevent it from trying a direct connection. > > > >Note that you also should not have ConnectTo = office-2 in office-1's > >tinc.conf, and vice versa, otherwise the above will not have any effect. > >
2016 Sep 02
0
Define which host to use when direct link not possible?
Le 31/08/2016 à 10:47, Armin a écrit : > On 30.08.2016 17:37, Guus Sliepen wrote: >> On Tue, Aug 30, 2016 at 02:38:16PM +0200, Armin Schindler wrote: >> >>> we use a meshed VPN with TINC to connect 7 offices. >>> Some office are in other countries and use other ISPs. The connection >>> between some ISPs (peering partners) are not that good. This means we
2008 Mar 31
2
Rails and Partials
Excuse my ignorance on partials but..... I am trying to use partials to create a uniform display box built with html tables. The only way I have thought about accomplishing this is to create two partials: _start_box.erb ---------------- <table id="box" width="<%= width %>"><tr><th><%= h(label_text) %></th></tr><tr><td>