Skip to main content

All Questions

Filter by
Sorted by
Tagged with
4 votes
1 answer
13k views

Bootstrap Switch fn is not a function

I'm trying to add bootstrap switch to a rails project. When I add my script from here as this: <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/3.3.4/js/bootstrap-switch.js" ...
Tom Hammond's user avatar
  • 6,130
1 vote
1 answer
2k views

How can I disable Sundays in an AngularJS datepicker?

I'm doing a web app with ruby on rails and Bootstrap UI for AngularJS. Have been trying for a while to disable picking any Sunday with the angular datepicker. Basically, I want the user to be ...
Vicente Dom�nguez Manquenahuel's user avatar
0 votes
1 answer
804 views

Angular js bootstrap ui modal timeout

I am trying to open a bootstrap modal with the $timeout function, however the modal keeps opening as timeout fires more than once. Any help will be much appreciated. Thanks SessionModalInstCtrl = ($...
user3472404's user avatar
2 votes
2 answers
580 views

Bootstrap UI Angular Accordion and Rails template must have one root element

I'm trying to use the example accordion directive in my rails app but receive the following error and my browser crashes Template for directive 'accordionGroup' must have exactly one root element. ...
user2954587's user avatar
  • 4,889
0 votes
1 answer
104 views

UIBootstrap breaking angularjs post request

I have the following in an angular partial <h1>{{tournament.name}}</h1> <accordion close-others="true"> <accordion-group> <accordion-heading> &...
Simon Means's user avatar
0 votes
2 answers
1k views

AngularJS Template Url not working

I am trying to set a templateUrl on a route in AngularJS using an html file in a child directory of assets. It works fine locally. The templates are stored at: #{RAILS_ROOT}/app/assets/templates # ...
Randmness's user avatar
4 votes
1 answer
1k views

Impossible to test Angular UI Typeahead with Poltergeist and PhantomJS

I'm having a problem testing my typeahead inputs. I'm using Rails, RSpec, Capybara, Angular UI 0.10, AngularJS, Poltergeist. This is my test: create(:user, name: "Test User") fill_in 'User', with: "...
Diego's user avatar
  • 858
7 votes
2 answers
2k views

Angular ui bootstrap custom templates in Rails

How can I use the custom templates of angular ui bootstrap in rails? I mean, if I use pagination for example it will look for a templates/pagination/pagination.html template. The problem is that ...
Jesus Rodriguez's user avatar