>> , that's why I just ''copy-paste'' code from other ruby
>> application.
>
> Ooooh. That's really bad. You need to learn the basics of the language
> a bit better, I think.
Yeah I started 4 months ago to learn Ruby (using books such Ruby on
Rails bible, Railspace). Right now I`m involved in some projects with
deadlines, that's why sometimes I copy-paste, but you`re right I will
avoid that
>> The Mime-type is text/javascript, and I think this one is obsolete , and
>> I want to set my response Mime-type to 'application/javascript'', how
>> to do that ? should I add it to render :js => "alert('Test !');" ?
> You don't want to do that. Check out
> http://krijnhoetmer.nl/stuff/javascript/mime-types/ :
> application/javascript is only recognized by a few browsers.
> text/javascript is the best understood type.
So In my response the mime-type is 'text/javascript', but the isssue is
still here..., so what's wrong then ?
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]
--
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.