model with name Medium/Media is breaking css









up vote
-1
down vote

favorite












I found very strange issue with Rails+bootstrap combination. I have model named Medium



when I create page with simple code



<% (1..300).each do |i| %>
<p>Hello <%= i %> </p>
<% end %>


it does not scroll at all. I see it should go lower on screen but I cannot scroll.
If i move this simple code (it is used just for simplification, actually I have huge datatable where I found this issue) to static_pages or different controller/related to other model than Medium, it works and I can scroll.



my media.scss file in assets is empty so there is no css which can affect this.
Is there any explanation for this? Why rails behave strange for model with this name?










share|improve this question





















  • "Medium" is not on the reserved words list in Rails (reservedwords.herokuapp.com/words?page=4) so that is curious. Is this up somewhere so we can take a look/run the code?
    – John Athayde
    Nov 9 at 21:45










  • It is a mix of rails/bootstrap and inspinia bootstrap theme...I will try to simplify it as much as possible in dummy project and if I still see same issue I will put the code somewhere online. Thanks
    – Mi Ro
    Nov 9 at 22:01










  • does the controller use the same view layout / assets as the ones without the buggy behavior?
    – lacostenycoder
    Nov 9 at 22:51










  • yes exact same layout, assets as other views for diff controllers
    – Mi Ro
    Nov 10 at 21:01















up vote
-1
down vote

favorite












I found very strange issue with Rails+bootstrap combination. I have model named Medium



when I create page with simple code



<% (1..300).each do |i| %>
<p>Hello <%= i %> </p>
<% end %>


it does not scroll at all. I see it should go lower on screen but I cannot scroll.
If i move this simple code (it is used just for simplification, actually I have huge datatable where I found this issue) to static_pages or different controller/related to other model than Medium, it works and I can scroll.



my media.scss file in assets is empty so there is no css which can affect this.
Is there any explanation for this? Why rails behave strange for model with this name?










share|improve this question





















  • "Medium" is not on the reserved words list in Rails (reservedwords.herokuapp.com/words?page=4) so that is curious. Is this up somewhere so we can take a look/run the code?
    – John Athayde
    Nov 9 at 21:45










  • It is a mix of rails/bootstrap and inspinia bootstrap theme...I will try to simplify it as much as possible in dummy project and if I still see same issue I will put the code somewhere online. Thanks
    – Mi Ro
    Nov 9 at 22:01










  • does the controller use the same view layout / assets as the ones without the buggy behavior?
    – lacostenycoder
    Nov 9 at 22:51










  • yes exact same layout, assets as other views for diff controllers
    – Mi Ro
    Nov 10 at 21:01













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I found very strange issue with Rails+bootstrap combination. I have model named Medium



when I create page with simple code



<% (1..300).each do |i| %>
<p>Hello <%= i %> </p>
<% end %>


it does not scroll at all. I see it should go lower on screen but I cannot scroll.
If i move this simple code (it is used just for simplification, actually I have huge datatable where I found this issue) to static_pages or different controller/related to other model than Medium, it works and I can scroll.



my media.scss file in assets is empty so there is no css which can affect this.
Is there any explanation for this? Why rails behave strange for model with this name?










share|improve this question













I found very strange issue with Rails+bootstrap combination. I have model named Medium



when I create page with simple code



<% (1..300).each do |i| %>
<p>Hello <%= i %> </p>
<% end %>


it does not scroll at all. I see it should go lower on screen but I cannot scroll.
If i move this simple code (it is used just for simplification, actually I have huge datatable where I found this issue) to static_pages or different controller/related to other model than Medium, it works and I can scroll.



my media.scss file in assets is empty so there is no css which can affect this.
Is there any explanation for this? Why rails behave strange for model with this name?







ruby-on-rails ruby twitter-bootstrap






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 9 at 21:36









Mi Ro

3221413




3221413











  • "Medium" is not on the reserved words list in Rails (reservedwords.herokuapp.com/words?page=4) so that is curious. Is this up somewhere so we can take a look/run the code?
    – John Athayde
    Nov 9 at 21:45










  • It is a mix of rails/bootstrap and inspinia bootstrap theme...I will try to simplify it as much as possible in dummy project and if I still see same issue I will put the code somewhere online. Thanks
    – Mi Ro
    Nov 9 at 22:01










  • does the controller use the same view layout / assets as the ones without the buggy behavior?
    – lacostenycoder
    Nov 9 at 22:51










  • yes exact same layout, assets as other views for diff controllers
    – Mi Ro
    Nov 10 at 21:01

















  • "Medium" is not on the reserved words list in Rails (reservedwords.herokuapp.com/words?page=4) so that is curious. Is this up somewhere so we can take a look/run the code?
    – John Athayde
    Nov 9 at 21:45










  • It is a mix of rails/bootstrap and inspinia bootstrap theme...I will try to simplify it as much as possible in dummy project and if I still see same issue I will put the code somewhere online. Thanks
    – Mi Ro
    Nov 9 at 22:01










  • does the controller use the same view layout / assets as the ones without the buggy behavior?
    – lacostenycoder
    Nov 9 at 22:51










  • yes exact same layout, assets as other views for diff controllers
    – Mi Ro
    Nov 10 at 21:01
















"Medium" is not on the reserved words list in Rails (reservedwords.herokuapp.com/words?page=4) so that is curious. Is this up somewhere so we can take a look/run the code?
– John Athayde
Nov 9 at 21:45




"Medium" is not on the reserved words list in Rails (reservedwords.herokuapp.com/words?page=4) so that is curious. Is this up somewhere so we can take a look/run the code?
– John Athayde
Nov 9 at 21:45












It is a mix of rails/bootstrap and inspinia bootstrap theme...I will try to simplify it as much as possible in dummy project and if I still see same issue I will put the code somewhere online. Thanks
– Mi Ro
Nov 9 at 22:01




It is a mix of rails/bootstrap and inspinia bootstrap theme...I will try to simplify it as much as possible in dummy project and if I still see same issue I will put the code somewhere online. Thanks
– Mi Ro
Nov 9 at 22:01












does the controller use the same view layout / assets as the ones without the buggy behavior?
– lacostenycoder
Nov 9 at 22:51




does the controller use the same view layout / assets as the ones without the buggy behavior?
– lacostenycoder
Nov 9 at 22:51












yes exact same layout, assets as other views for diff controllers
– Mi Ro
Nov 10 at 21:01





yes exact same layout, assets as other views for diff controllers
– Mi Ro
Nov 10 at 21:01


















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233557%2fmodel-with-name-medium-media-is-breaking-css%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233557%2fmodel-with-name-medium-media-is-breaking-css%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo