Got a chance to work on this this morning.
First patch worked fine, no problem. The second wasn't working for me
until I remembered you need to separate out a method's name as its own
argument when passing it to another method.
So, from my example above, you need to do this:
render :_button, R(S
Thanks Magnus, those changes make sense to me. I can test them out no
problem, just not until Monday. I'll send out another e-mail then.
Thanks,
Dave
On Fri, Jul 9, 2010 at 5:30 PM, Philippe Monnet wrote:
> Yes I think the first patch makes sense to filter out partials from the
> process of appl
Yes I think the first patch makes sense to filter out partials from the
process of applying the layout.
For the second patch now I get why Dave's parameters were not being
used. So now your change would send *a . Cool.
Dave do you want to try that out?
And then Magnus can go ahead and apply it a
Should we apply a patch like this?
diff --git a/lib/camping-unabridged.rb b/lib/camping-unabridged.rb
index 636ad6f..f3195b3 100644
--- a/lib/camping-unabridged.rb
+++ b/lib/camping-unabridged.rb
@@ -272,7 +272,7 @@ module Camping
def render(v, o={}, &b)
if t = lookup(v)
s = (
I do have the latest reststop gem, but the problem occurs when I'm
*not* using reststop. The regular camping render method does not check
for the _, where as the reststop render does. Line 166 is reststop is
working, but there's no equivalent logic (that I can see) in camping
render.
I've tried ca
For issue #1: I think I added the change on line 166( when committing
my last changes for gem 0.5.3) to check for partials in the normal flow
of restop_render. Could you verify you have the latest?
For issue #2: what does your <%=render ... %> code looks like?
Is only the name of the partial i
FYI, when not using reststop, calling render :_some_partial from a
template will automatically wrap the partial in the layout.
I think this is because the render method automatically wraps a view
in the layout if the layout exists, rather than checking if the first
character is an underscore and t
Arg, I new it would be something simple. Thanks.
Dave
On Thu, Jul 8, 2010 at 10:54 PM, Philippe Monnet wrote:
> David,
>
> If you're using Tilt, to make partials work in ERB or HAML you would need to
> explicitly call render with the name of the partial. So for example, in ERB:
> <%=render "
David,
If you're using Tilt, to make partials work in ERB or HAML you would
need to explicitly call render with the name of the partial. So for
example, in ERB:
<%=render "_mypartial" %>
Philippe (@techarch)
On 7/8/2010 2:19 PM, David Susco wrote:
Thanks Philippe, it's working great.
Has a
Thanks Philippe, it's working great.
Has anyone gotten partials to work with Tilt?
Dave
On Wed, Jul 7, 2010 at 9:58 PM, Philippe Monnet wrote:
> I fixed the issue in the basic_render method. At the time I worked on
> RESTstop I had done the minimum needed to make it work with the new version
>
I fixed the issue in the basic_render method. At the time I worked on
RESTstop I had done the minimum needed to make it work with the new
version of Camping. And when Tilt support was added I did not fully
retrofit the code to make it work with Tilt templates. Problem corrected!
Thanks David fo
Hi David, I will look into this (probably this week-end though) - as I
actually did not try Tilt at the same time as RESTstop.
On 7/6/2010 7:45 AM, David Susco wrote:
Still fooling around with this, no luck yet. Found some other things though.
It seems I need to fully qualify controllers as ar
Still fooling around with this, no luck yet. Found some other things though.
It seems I need to fully qualify controllers as arguments for URL and
R methods when using Tilt (this is irrespective of whether I'm using
reststop or not). Is there anything I can do to get around this?
Also, is there a
I'm trying to use the new Tilt integration with reststop. All the
aliases and whatnot under "Implementing your own service"
(http://wiki.github.com/camping/reststop/) are there and :views has
been set in the options hash. I tried creating sub-directories in the
views directory (html, HTML) but I st
14 matches
Mail list logo