Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Benjamin Martinez
    @cruznick
    is there a way to mix the modal refill with the responsive youtube video so that when the modal appears the video autoplays and on close it just stop i've managed to make it just missing that functionality I've searched a lot and found that i need to call the youtube iframe api with javascript but i cant make it work
    John Henderson
    @jhenderson22
    Has anyone used a video as the hero element? If, so how?
    Meghan Hartman
    @meghart
    I have a simple Ruby on Rails app. I've added bourbon, neat, bitters, and refills gems, done bundle install and followed all the directions. However, refills doesn't work. I copy and paste the code snippets and all I see it unstyled text.
    What am I doing wrong?
    Tyson Gach
    @tysongach
    @meghart Hi! You should not use Bitters as a gem within the Rails projects. Rather, install the files locally: https://github.com/thoughtbot/bitters#installation
    Are you using the Refills gem to generate the partials within your project? If so, are you adding those partials as an import in your main manifest file?
    Meghan Hartman
    @meghart
    @tysongach thanks for the reply, I'll try install it that way
    @tysongach so I should remove the bitters gem?
    Tyson Gach
    @tysongach
    From the project, yes, remove the gem. We do suggest installing the gem locally on your machine though, so that you can just cd to the directory where you want Bitters, and run a bitters install from the command line. It’s the quickest way to drop all of Bitters’ files right into your project.
    Meghan Hartman
    @meghart
    @tysongach Yeah still really doesn't work at all. Thanks anyway.
    Tyson Gach
    @tysongach
    @meghart What doesn’t work? Can you explain in more detail? Can you show me your code?
    Meghan Hartman
    @meghart
    @tysongach I've abandoned the project and so I no longer have the code. Basically in the gem file, I had bourbon, neat, and bitters. In the application.css.scss, I removed the require tree. and added the @imports in proper order. Then I copied the code from the navigation refill into the my view and, nada. I tried so many ways and could never get any kind of styling. I felt like I wasted a few hours. Very frustrating.
    Tyson Gach
    @tysongach
    @meghart Bummer! Well if you ever need any help getting this set up in the future, please don’t hesitate to reach out. We really try to make our documentation clear and we’re always continually improving it. Any suggestions are welcome.
    For Bourbon and Neat, adding the gems to your Gemfile and then adding the imports is spot on. For Refills, you can add the gem to your Gemfile, then use rails generate to have the gem put particular components in place for you. More on that here: https://github.com/thoughtbot/refills#installation-for-ruby-on-rails
    Jo Dahl
    @ehrenglaube
    Hello, so I've been having troubles getting refills to work in a rails app, basically I was trying to use the snippet thing as described on the GitHub page, but it always returns with a dependency error.
    Tyson Gach
    @tysongach
    @ehrenglaube What’s the exact error? What version of Refills do you have in your Gemfile, if any?
    Jo Dahl
    @ehrenglaube
    I just reinstalled my PC so please forgive my delay, and it's several dependency errors, when i fix one, a bunch more pop up, I will have to reinstall to get the exact errors, which I will do now.
    Jo Dahl
    @ehrenglaube
    C:\Dev\Projects\Brandy>rails generate refills:list
    C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x64-mingw32/lib/sqlite3.rb
    :6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x64-mingw32/l
    ib/sqlite3.rb:6:in `rescue in <top (required)>'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x64-mingw32/l
    ib/sqlite3.rb:2:in `<top (required)>'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.2/lib/bundler/ru
    ntime.rb:76:in `require'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.2/lib/bundler/ru
    ntime.rb:76:in `block (2 levels) in require'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.2/lib/bundler/ru
    ntime.rb:72:in `each'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.2/lib/bundler/ru
    ntime.rb:72:in `block in require'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.2/lib/bundler/ru
    ntime.rb:61:in `each'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.2/lib/bundler/ru
    ntime.rb:61:in `require'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/bundler-1.9.2/lib/bundler.rb
    :134:in `require'
            from C:/Dev/Projects/Brandy/config/application.rb:7:in `<top (required)>
    '
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
    mands/commands_tasks.rb:141:in `require'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
    mands/commands_tasks.rb:141:in `require_application_and_environment!'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
    mands/commands_tasks.rb:128:in `generate_or_destroy'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
    mands/commands_tasks.rb:50:in `generate'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
    mands/commands_tasks.rb:39:in `run_command!'
            from C:/Tools/Ruby/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/com
    mands.rb:17:in `<top (required)>'
            from bin/rails:4:in `require'
            from bin/rails:4:in `<main>'
    that's the main error
    Tyson Gach
    @tysongach
    @ehrenglaube This doesn’t appear to be a direct error with Refills, but rather an errors with dependencies in your environment. That’s hard for us to debug, but can you run bundle install successfully?
    Jo Dahl
    @ehrenglaube
    yes, it runs bundle install successfully
    Teo Ljungberg
    @teoljungberg
    hi @ehrenglaube, can you try running bundle exec rails generate refills:list?
    Jo Dahl
    @ehrenglaube
    same error, here let me show you something...
    ugh, it won't let me post the whole thing, let me make a gist of it.
    those are the erros
    plus every command I've typed to set it up
    Teo Ljungberg
    @teoljungberg
    hm, @ehrenglaube nothing in the stacktrace refers to refills itself. It seems to be an error with booting up rails, like you might not have sqlite3 setup or not installed.
    It should fail when runnig bundle exec rails c aswell in that case
    Jo Dahl
    @ehrenglaube
    SQlite3 is in my gemfolder, so unless it's an actual program like exe style, than I don't know
    Teo Ljungberg
    @teoljungberg
    So that's a gem you have, but do you have the actual sqlite3 database installed? This is a rails issue and not something related to refills, that's why you shouldn't even be able to open up a rails c and running User.first or whatever model you might have.
    Jo Dahl
    @ehrenglaube
    I don't know why sqlite3 is even required for refills XD I don't know anything about sqlite3
    Tyson Gach
    @tysongach
    @ehrenglaube It’s not required for Refills, but it appears to be in your Gemfile (rails new puts it there). Try setting up sqlite3 if you plan on using it, or remove it.
    Jo Dahl
    @ehrenglaube
    I hate to sound like a retard... but I don't know how, as I said, I know nothing about sqlite3 and I have never used rails before
    Tyson Gach
    @tysongach
    @ehrenglaube No worries. Personally, I know nothing about sqlite3 either. Try commenting or removing this from you Gemfile: gem 'sqlite3'
    Jo Dahl
    @ehrenglaube
    okay, one thing... what gems are the absolute necessary requirements for refills? I'll make a gem file with only those in it and test that
    Jo Dahl
    @ehrenglaube
    either way, upon commenting out the sqlite3 entry it starts giving errors regardin nokogiri, which, again, I know nothing about
    the full log donno why the picture got added
    Tyson Gach
    @tysongach
    May I ask why you’re planning to use Refills with Rails if none of Rails is setup at all? You could just copy paste Refills from the website and not use the gem.
    Jo Dahl
    @ehrenglaube
    it's a learning experience.
    Tyson Gach
    @tysongach
    @ehrenglaube I honestly can’t provide much support around your issue, as it’s not related to Refills itself, but rather setting up your Rails app and I’m not a Rails developer. We actually have a coaching service here at thoughtbot, in case you’d be interesting in leveling up in that area: http://coaching.thoughtbot.com
    Rick Yentzer
    @ryentzer
    Has anyone used the modal refill with scrolling content? I wanted to trigger the modal to edit some fields in a table, but the amount of info is causing scrolling. This in turn scrolls the close button also.
    Rick Yentzer
    @ryentzer
    I was able to get what I wanted. I added a max-height: 450px and overflow: auto to the .modal-content selector.
    Anika Jaffara
    @AnikaJaffara
    Hello! I'd like to update the lat and long on the Google Map component. I'm not having a of luck with finding info on how to simply change to coordinates. Any suggestions?
    Rick Cogley
    @RickCogley
    Hello - I'm new to sass and the ThoughtBot packages are really helping me learn about it, so thanks! (and happy new year). I see in the various refills a $large-screen: em(860) !default;. Is the idea to remove this and other variables that are repeated, and move them to a single "master" _variables.scss file?
    Rick Cogley
    @RickCogley
    However, $large-screen is also defined for neat, as a px value. Won't these conflict?
    Kumaresh
    @jm-kumaresh
    @AnikaJaffara Are you using any jquery plugin or embedding map directly from google maps...?
    Alexandar Castaneda
    @alexthedar
    hi all
    i am enjoying bourbon and neat and bitters. However i am curious are the refills dependant on jQuery? Has anyone seen refills used with react angular or vue?