简体   繁体   中英

Incomplete page load in Ruby On Rails

I'm fairly new to Ruby on Rails so I'm not sure what to search for because I'm just not finding the answers I need to the problem.

I have several pages in a web app and after a few clicks in my development environment, some pages just stop loading data without any errors in the console or firebug. Looking at the HTML generated, it doesn't cut off the code in any consistent fashion... sometimes it'll cut off in the middle of writing an element's properties. It happens in Firefox and Chrome.

I've spent the last 3 or 4 days moving a lot of logic out of the .erb pages and into controllers and helpers and presenters, and triple checking missing HTML tags, missing javascript semi-colons... but still it persists. I haven't encountered this on our test and production sites, but seeing it in the development environment concerns me.

Anyone have any idea where a good place to look would be?

My code is all in an intranet machine, and there is a lot of it, so I'm not sure what kind of code to post. The data that fails to load is coming from a mongoDB and we're putting it lists and tables, and both are victims of the fail.

As per the comments, and Lurker's suggestion of searching for development specific configurations.

group :development do in the gemfile and differences between config/environments/development.rb and config/environments/production.rb are a good start to help isolate problems specific to the development environment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM