Stack Overflow

A language-independent collaboratively edited question and answer site for programmers.

  • Ruby / Rails / Bootstrap / Paperclip - Image Gallery Layout

    html - Ruby / Rails / Bootstrap / Paperclip - Image Gallery Layout

    stackoverflow.com 17 Oct '16, 10pm

    I have an image gallery that needs styling. The layout is currently stacked. I would like the gallery to show 4 images on each row before generating a new row. The problem I face so far is getting the images not to repeat when using bootstrap grid. View View HTML: <div class="row"> <d...

  • api - Ruby on Rails Sunlight Congress Gem

    stackoverflow.com 15 Oct '16, 4am

    I'm really new to Rails, but I'm loving it so far. I'm trying to make a website that takes the user's address, and tells the user who his senators and congressional representative is. I'm using the sunlight api gem for this, which can be found here: https://github.com/sunlightlabs/rub...

  • AWS cloudfomation Sample Ruby on Rails Stack template times out

    stackoverflow.com 27 Aug '16, 6pm

    I am tying to use the Ruby on Rails sample stack and it always fails with a timeout after about 20 minutes. Would someone kindly try to create this bare minimum Rails app using this basic sample Ruby on Rails cloud formation template and report back to me if they had a success or fail...

  • on Rails - User object showing nil fields even though they are filled

    stackoverflow.com 14 Aug '16, 3am

    I'm having a weird problem with getting my user registration to work in Rails. When I create a user, it will show all its fields but the password_digest being nil, but when I type something like "u.email", the email will show up. However, it doesn't want to save the user, I assume bec...

  • on Rails: Cant figure out why my jQuery-ui autocomplete isn't working?

    stackoverflow.com 15 Sep '16, 2am

    I just followed a youtube tutorial on adding a jQuery-ui autocomplete feature to my search field. This is the link to the tutorial: https://www.youtube.com/watch?v=iMz8HmrQ350 . For some reason it is not working, despite going over the tutorial and rechecking syntax constantly. I'm NO...

  • Rails: ruby class name must base on file name?

    stackoverflow.com 07 Aug '16, 4am

    I'm learning rails 5.0. When I learn Ruby, I know that ruby file name can be different with class name inside. But when I move to rails, I see that ruby file name and class name must have same format. For example, a class name CheckInDetail will be in check_in_detail.ruby . I also see...

  • Elastic Search: how to see the indexed data #ruby-on-rails #elasticsearch #attr-protected

    on rails - Elastic Search: how to see the indexed data

    stackoverflow.com 16 Jul '16, 9pm

    The problem can be solved by grouping data; DrTech's answer used facets to manage this. However, this is being deprecated according to elasticsearch 1.0 reference. Warning Facets are deprecated and will be removed in a future release. You are encouraged to migrate to aggregations inst...

  • How can I rename a database column in a Ruby on Rails migration?

    stackoverflow.com 24 May '16, 9pm

    If the column is already populated with data and live in production, I'd recommend a step by step approach, so as to avoid downtime in production while waiting for the migrations. First I'd create a db migration to add columns with the new name(s) and populate them with the values fro...