Joshua Mckinney wrote:
> Check your rjs code. Run debugger and insert <%debugger%> at the very
> top of the rjs file, if catches the debugger then you have an rjs code
> error. Install firebug and view the returned javascript. Since the rjs
> is rendered after the insert your insert would reflect in the log but
> bad rjs code would not run, sometimes there an error if you have a
> ruby-code problem, sometimes no error if its only java-script related.
>
> You can also check your request format from within the controller
> with ... request.format ;)
If I run the request with firebug it breaks at line 13 of prototpye,js
Browser: {
IE: !!(window.attachEvent &&
navigator.userAgent.indexOf('Opera') === -1),
Opera: navigator.userAgent.indexOf('Opera') > -1,
WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
Gecko: navigator.userAgent.indexOf('Gecko') > -1 &&
navigator.userAgent.indexOf('KHTML') === -1,
MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
},
Is my problem maybe that Ubuntu or Linux or Firefox are not there?
I still don't understand why it is looking for create.erb surely the
format.js in the create function is supposed to override that.
Even more confused
In peace Neil
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en.