Topic: Who's using the partial?

OK. I am pretty new to ROR (few months) and I am working on a site for a mission group. In creating a user account, I want to use the same partial to create and edit the account information. But in editing, I don't want to display the captcha part of the form. So, I am saying...
<% if !current_page?(:action => 'edit') %>
<%= show_simple_captcha %>
(leaving some details out for clarity)
I don't know, it seems kind of kludgy to me. When I get it right in ROR I get an "Yeah, that's it!" feeling and this isn't it.
Any thoughts?

grace and peace

Why prayer when you can fret and worry?

Re: Who's using the partial?

You could say

<%= show_simple_captcha unless request[:action] == 'edit' %>
Ryan Heneise  |  Art of Mission  |  Now with extra-strong Donor Tools mojo

Re: Who's using the partial?

Or better yet:

<%= show_simple_captcha if @user.new_record? %>
Ryan Heneise  |  Art of Mission  |  Now with extra-strong Donor Tools mojo

Re: Who's using the partial?

HA!
That's it!
With the bonus of never having to know the name of the view.
Thank you!
One more step up the learning curve.

Why prayer when you can fret and worry?