I haven't seen any problems with this but I do not do much browsing using an
iPhone.  I know some people from my company have looked at websites with
active scaffold before and not had issues but this was a while back.

on line 123 of lib/active_scaffold/actions/core.rb is this
def respond_to_action(action)
      respond_to do |type|
        send("#{action}_formats").each do |format|
          type.send(format){ send("#{action}_respond_to_#{format}") }
        end
      end
    end

try changing this to

def respond_to_action(action)
      respond_to do |type|
        send("#{action}_formats").each do |format|
          format = "html" if (format == "iphone")
          type.send(format){ send("#{action}_respond_to_#{format}") }
        end
      end
    end

I just added this line to the top of the method.
          format = "html" if (format == "iphone")

I think if you do that it will just render the normal html pages anytime the
format is iphone.  You might have to play around with it ( make sure the
capitalization is correct, iphone might be iPhone sometimes or something).

I don't think this is a very good fix, but it's worth a try.  Let me know if
it helps at all.

Don't forget every time you make changes to the files down inside of active
scaffold you wlll probably have to restart your server for them to take
affect

~kenny

On Sat, Jan 9, 2010 at 1:09 PM, Jim <[email protected]> wrote:

> Time to beg ;-) Anyone else experiencing this issue?  My "fixes" had
> undesirable side effects... most controller actions are defaulting to
> the respond_to of xml, and controllers that are being handled by
> ActiveScaffold are defaulting to the iphone respond_to unless I
> specifically tell an action to render "foo.html.erb"
>
> --
> You received this message because you are subscribed to the Google Groups
> "ActiveScaffold : Ruby on Rails plugin" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<activescaffold%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/activescaffold?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to