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?
ruby-on-rails ruby twitter-bootstrap
add a comment |
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?
ruby-on-rails ruby twitter-bootstrap
"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
add a comment |
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?
ruby-on-rails ruby twitter-bootstrap
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
ruby-on-rails ruby twitter-bootstrap
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
add a comment |
"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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
"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