textarea rows:'5' @testform.testing doesn't do what you want it to do?
On Mon, May 12, 2014 at 1:51 AM, Sebastjan Hribar
sebastjan.hri...@gmail.com wrote:
Hi,
can someone tell me if multi-line input field is possible to do with
markaby?
If I use input tag like so:
---
input
On 4:
http://api.rubyonrails.org/classes/ActiveRecord/Migration.html#label-Reversible+Migrations
Looks like you just define the up, AR takes care of the rest. Never
tried it, it'll save a few lines of code though.
On injection, AR sanitizes almost everything I believe. The only thing
I know to
On the linking thing, could you invoke a method in the main app from a
sub-app which takes a sub-app name and a route as variables? The
method could then just return R() from the appropriate sub-app.
Dave
On Sat, Feb 18, 2012 at 4:55 PM, Isak Andersson icepa...@lavabit.com wrote:
Stick with the way we're doing it. I only use markaby when it's
easier/prettier to use then HAML (quick one-line helpers and the
like).
Dave
On Mon, Dec 19, 2011 at 4:26 PM, Magnus Holm judo...@gmail.com wrote:
On Mon, Dec 19, 2011 at 21:34, Isak Andersson icepa...@lavabit.com wrote:
My
So then I'd have to remember it's the opposite of the way it's been? :P
Dave
On Mon, Dec 19, 2011 at 5:53 PM, Jenna Fox a...@creativepony.com wrote:
If no hard dependancies, can we switch it around so core camping is in a
camping-seedling gem, and the regular camping gem is actually the one
I think that's immensely useful. It'll allow me to keep JS/CSS/HTML
separate from the app files but still packaged with the app.
Dave
On Fri, Dec 16, 2011 at 3:13 PM, Magnus Holm judo...@gmail.com wrote:
Here's one useful snippet:
def (Before=).new(a,*o)Rack::Cascade.new(oa)end
This means
, Aug 30, 2011 at 6:20 PM, Tim Uckun timuc...@gmail.com wrote:
On Wed, Aug 31, 2011 at 1:33 AM, David Susco dsu...@gmail.com wrote:
I've got five camping apps in production. They're mostly CRUDs with
some basic searching/e-mailing/etc. I use a few third party libraries;
haml, paper_trail, rack/csrf
I've got five camping apps in production. They're mostly CRUDs with
some basic searching/e-mailing/etc. I use a few third party libraries;
haml, paper_trail, rack/csrf and redcloth being the main ones. I
haven't had too much need beyond those but your mileage will vary
obviously.
What Camping
If I'm understanding your question correctly I think judicious use of
the @state instance variable will achieve what you're looking for.
You'll be able to store what you need and be able to access it from
request to request.
Another option would be to use sqlite in memory mode.
to simplify a person's user experience
by prefilling a cumbersome form, but your strategy for doing this may be
flawed.
--beppu
On Sun, Jul 3, 2011 at 8:06 PM, David Susco dsu...@gmail.com wrote:
They do not, pretty much they need a few input tags and that's about
it. I'm just looking to do my
searched for it, but I
couldn't find anything.
On Sun, Jul 3, 2011 at 4:46 AM, David Susco dsu...@gmail.com wrote:
None of those, I'm in education, and we have to go through Sallie Mae.
Dave
On Sun, Jul 3, 2011 at 1:16 AM, John Beppu john.be...@gmail.com wrote:
Can you tell us what payment
Ideally I'd like a user to be able to submit a form to the camping
app, having camping do all the validation and some preprocessing and
then have the camping app send the user to an external site (with the
post data) where the user can complete a payment.
Dave
On Wed, Jun 29, 2011 at 5:00 PM,
What's the cleanest way to do this? With Net::HTTP? I have a form
that's sent to a controller and validated. If its valid I'd like to
send the user on (along with the info they've entered) to an external
site to process payment.
Thanks,
Dave
___
Can I send POST data along with a redirect?
Dave
On Wed, Jun 29, 2011 at 3:44 PM, Steve Klabnik st...@steveklabnik.com wrote:
If you're sending them along, isn't that a redirect, not a POST?
___
Camping-list mailing list
Camping-list@rubyforge.org
it :/
// Magnus Holm
On Tue, May 24, 2011 at 19:53, David Susco dsu...@gmail.com wrote:
Not really Camping specific, but I've always had better luck asking on
this list than any of the rails ones. I'm trying to upgrade from
activerecord 2.3.8 to 3.0.7 and I'm getting a
ActiveRecord
judo...@gmail.com wrote:
Why don't add this?
def App.create(env = :development)
end
And in production, you can call App.create(:production) yourself.
// Magnus Holm
On Tue, Aug 24, 2010 at 15:36, David Susco dsu...@gmail.com wrote:
Not talking about having it recycle (I assume all
= @something_nasty
will be escaped by default. See:
http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#escape_html-option
for more info.
Best,
Ted
On Mon, Aug 9, 2010 at 9:15 AM, David Susco dsu...@gmail.com wrote:
Hey guys,
What do people do to protect against cross-site request forgery
://github.com/rtomayko/tilt/blob/master/TEMPLATES.md) by:
set :EXTENSION, { :a= true, :b = false }
// Magnus Holm
On Mon, Aug 9, 2010 at 19:08, David Susco dsu...@gmail.com wrote:
Thanks I'll look into the middleware.
I know that's how you escape HTML in Haml, what am asking though is
how
On a somewhat related note. How do people handle static content in a
development environment? Is there a way to make the camping server
aware of the public/ directory and serve the files within it?
What about in production? Is passenger smart enough to pass requests
for files in public/ back to
://gems.judofyr.net/`
// Magnus Holm
On Fri, Jul 23, 2010 at 21:48, David Susco dsu...@gmail.com wrote:
lol, at first I thought you were messing with me. X is the apps
Controllers module, correct?
Will I always have to do this when using Tilt? Or only until this
patch makes it into a gem?
Dave
.
// Magnus Holm
On Wed, Jul 21, 2010 at 22:53, David Susco dsu...@gmail.com wrote:
Thanks Magnus,
I gave that a shot but I'm still getting an argument error:
Anonymous modules have no name to be referenced by
I'm trying to wrap my mind around what this patch is doing, but I
don't see
patch. Try this instead:
module App
include X
end
// Magnus Holm
On Fri, Jul 23, 2010 at 18:01, David Susco dsu...@gmail.com wrote:
Hey Magnus, I patched the files and it's still the same thing. Here's
the backtrace, let me know if you want browser dump as well.
127.0.0.1 - - [23/Jul
(SomeController), 'Some Controller'
The comma after _button is the key.
Anyway, they both worked for me, thanks Magnus.
Dave
On Fri, Jul 9, 2010 at 9:47 PM, David Susco dsu...@gmail.com wrote:
Thanks Magnus, those changes make sense to me. I can test them out no
problem, just not until Monday
:
%=render _mypartial %
Philippe (@techarch)
On 7/8/2010 2:19 PM, David Susco wrote:
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 r...@monnet-usa.com wrote:
I fixed the issue
I agree to the separation as well. A site that introduces camping with
a simple example/tutorial and that links to a wiki (with more advanced
stuff) and the mailing list is a good way to go about it.
Dave
On Thu, Jul 8, 2010 at 10:20 PM, Philippe Monnet r...@monnet-usa.com wrote:
Yeah, I agree
to lookup a method _button R(SomeController), 'Some
Controller' rather than a method _button with the arguments
R(SomeController), 'Some Controller'.
Hopefully that was clear enough.
Dave
On Fri, Jul 9, 2010 at 9:10 AM, David Susco dsu...@gmail.com wrote:
Arg, I new it would be something simple
' % )? If so the Camping render should be only
performing the lookup on the partial name (the v argument) and send the
other arguments along.
On 7/9/2010 9:14 AM, David Susco wrote:
FYI, when not using reststop, calling render :_some_partial from a
template will automatically wrap the partial
(self,
o[:locals] || {}, b)
s = render(L, o.merge(L = false)) { s } if o[L] != false
lookup(L)
s
else
// Magnus Holm
On Fri, Jul 9, 2010 at 19:12, David Susco dsu...@gmail.com wrote:
I do have the latest reststop gem, but the problem occurs when I'm
)
On 7/6/2010 10:07 PM, Philippe Monnet wrote:
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
, is there anyway to call partials (markaby or other template
files) from a template file?
Dave
On Wed, Jun 30, 2010 at 9:46 AM, David Susco dsu...@gmail.com wrote:
I'm trying to use the new Tilt integration with reststop. All the
aliases and whatnot under Implementing your own service
(http
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
Has anyone had any experience with vestal_versions, has_versioning, or
another similar gem with camping?
I'm currently fooling around with vestal_versions ( :P ) trying to
figure out how to create the version table. Apparently this is handled
via a script/db migration in Rails, and without
Camping with reststop ought will make serving the xml files easy
enough. The example on github ought to get you started:
http://github.com/camping/reststop
Dave
On Tue, Jun 8, 2010 at 2:25 AM, Raimon Fernandez co...@montx.com wrote:
hi list,
This is my first time here, my first time reading
I don't believe the gem has been updated to include Matt's or
Philippe's latest changes. You could clone it from GitHub though and
rake and install it yourself.
Dave
On Tue, Jun 8, 2010 at 11:55 AM, Raimon Fernandez co...@montx.com wrote:
Hi Dave,
On 8jun, 2010, at 17:04 , David Susco wrote
Is the hoe gem installed?
Dave
On Tue, Jun 8, 2010 at 1:01 PM, Raimon Fernandez co...@montx.com wrote:
On 8jun, 2010, at 18:43 , David Susco wrote:
I don't believe the gem has been updated to include Matt's or
Philippe's latest changes. You could clone it from GitHub though and
rake
Indeed, congratulations everyone. And thank you to all those who made
the 199 commits.
On Fri, Apr 9, 2010 at 12:14 PM, John Beppu john.be...@gmail.com wrote:
Good job.
___
Camping-list mailing list
Camping-list@rubyforge.org
No hiccups with my apps.
Dave
On Sat, Apr 3, 2010 at 4:23 PM, Magnus Holm judo...@gmail.com wrote:
Ladies and gentlemen:
gem install camping --prerelease
(Look, no --source!)
I'm not a big fan of betas/RCs, but this is a rather big change and I want
to make sure we release something
I have a few camping projects that are about to go into production in
a few weeks, just picking your brains to see if I can add some
robustness.
What's the best way to catch any Camping Problem! /XXX not found
errors that a user might see if they start typing URLs themselves?
Ideally I'd just
…
// Magnus Holm
On Fri, Feb 19, 2010 at 20:59, David Susco dsu...@gmail.com wrote:
I have a few camping projects that are about to go into production in
a few weeks, just picking your brains to see if I can add some
robustness.
What's the best way to catch any Camping Problem! /XXX not found
to try
now, I'm going to have a look at it *after* 2.0 is released.
//Magnus Holm
On Wed, Jun 10, 2009 at 22:30, David Susco dsu...@gmail.com wrote:
I've disabled SELinux to see if I could get any farther.
I managed to get passenger installed and working, however a fancy
passenger generated
#_the_apache_error_log_says_that_the_spawn_manager_script_does_not_exist_or_that_it_does_not_have_permission_to_execute_it
Dave
On Tue, Jun 9, 2009 at 11:28 AM, Jonathan Grollli...@groll.co.za wrote:
Hi David,
On Tue, Jun 09, 2009 at 09:29:22AM -0400, David Susco wrote:
I'd definitely
On Wed, Jun 10, 2009 at 22:30, David Susco dsu...@gmail.com wrote:
I've disabled SELinux to see if I could get any farther.
I managed to get passenger installed and working, however a fancy
passenger generated page is telling me the app couldn't be started due
to this error:
`require':
/usr
' = ... } (maybe
the keys are Symbols; I don't remember at the moment)
//Magnus Holm
On Thu, May 21, 2009 at 15:50, David Susco dsu...@gmail.com wrote:
Thanks, I've gotten it to work.
On this part though: @user = User.new params[:user
Is the closing bracket missing? Is params something
also return true or false, I believe.
On Wed, May 20, 2009 at 4:42 PM, David Susco dsu...@gmail.com wrote:
So, in my crud controllers, should I be using calls to save instead of
create and update_attributes? As those just return the object, and not
true of false based on my validations.
Dave
I ended up overwriting the redirect method with this:
def redirect *a
r(302, '', 'Location' = 'my_vhost.net/my_app/' + R(*a).to_s)
end
Thoughts?
Dave
On Tue, May 19, 2009 at 11:05 AM, David Susco dsu...@gmail.com wrote:
Within an apache vhost I'm rewriting like this:
IfModule
at the moment, but I think it looks something like
this:
In the controller:
if @user.valid?
# everything is fine
else
# ops! @user.errors contains the errors
end
//Magnus Holm
On Wed, May 20, 2009 at 19:43, David Susco dsu...@gmail.com wrote:
Can ActiveRecord::Validations::ClassMethods
initialize(app, options = {})
�...@app = app
end
def call(env)
�...@app.call(env.merge({ 'HTTP_HOST' = 'my_vhost.net' }))
end
end
app = Thing.new(app)
---
I also believe Apache is able to modify HTTP-headers.
//Magnus Holm
On Tue, May 19, 2009 at 15:31, David Susco dsu
47 matches
Mail list logo