Monday, August 13, 2012

Re: [Rails] Using Jquery plugin "tokenInput" with rails

On 13 August 2012 10:52, sumit srivastava <sumit.theinvincible@gmail.com> wrote:
> ...
> I verified the html for the view. No error related to the form was found.
> What else could be the problem?

Make sure there are no errors at all, if there are any errors anywhere
on the page you cannot be sure that anything will work, as the browser
is having to guess what you meant and sometimes it gets it wrong. It
is the most basic rule of debugging, first fix all the problems that
are clearly identified. You cannot imagine the amount of time that is
wasted trying to track down a tricky bug, whilst saying "that simple
error that I know about cannot possibly cause this other problem in an
entirely different bit of code" which in the end turns out to be a
side effect of the first problem. So fix all the html validation
problems first. It may not fix the submit problem but you have to do
it sometime after all, so do it now.

The next time you find a website that is behaving strangely or does
not look right then paste the url into the validator (I expect you saw
that you can give it a url rather than paste in the code) and it is
very likely there are errors. The site may well have been tested in
one browser and the errors did not appear to matter. Using another
browser, or even a update to the browser, can change the way it
interprets invalid html and the page breaks.

Colin

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate