I'd probably avoid using a form if it's not really used as a form.

How about writing some simple view helpers to dry up your code instead?

Bayan

On Thu, Dec 2, 2010 at 3:28 PM, James Ferguson <[email protected]>wrote:

> Hi,
>
> I'm using formtastic for my create/update pages and it's great, but I just
> wish it was as nice to use it for the show page.
>
> There's a StackOverflow thread about the same question:
>
>
> http://stackoverflow.com/questions/1905880/is-there-any-rails-plugin-like-formtastic-that-makes-show-and-index-views-easier
>
> but none of the alternatives seem that great for the show page (or very
> actively developed).
>
> It seems a lot of people just use disabled formtastic forms on the show
> page. But as far as I can tell that requires you to disable each field
> individually, which if you use a shared partial, ends up looking something
> like:
>
> <%= f.input :email, :input_html => { :maxlength => 255, :disabled =>
> (controller.action_name == "show" ? true : false) } %>
>
> at minimum for each field, which is not ideal.
>
> Is there an obvious alternative I'm missing here?
>
> james
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rails-oceania%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to