3
votes
0answers
363 views

How can we use rails routes with angularjs in a DRY way?

First of all,I would say sorry for my broken English and the broken codes...(many words here come from google translation...so, I'm afraid that I can't make myself clear...so, I paste all the ...
1
vote
0answers
162 views

Creating objects with hidden field values passed from Rails

Im quite new to Angular, so how Im approaching this might be entirely wrong, but some general advice on which direction to take with this would be much appreciated. More or less what I'm trying to do ...
1
vote
0answers
468 views

Serving Up Slim/Jade with Rails Assets Pipeline

I'm writing an Angular.js app and it needs to grab static HTML files for its various views. I'd like to use Slim or Jade to write these static pre-compiled views, and serve them up using the Rails ...
0
votes
0answers
27 views

Angular how to submit a nested form to Rails app

I want to turn a Rails nested form to Angular form. In my Model I am using accepts_nested_attribute_for, but how can I make my form so it can submit the correct paramters to my Rails controller like ...
0
votes
0answers
32 views

rails angular ng-include RoutingError

I'm new to Angular... I created an application with some routes defined: app = angular.module("LgiClient", ['ngCookies', 'buildings','ngResource']).config(['$routeProvider', '$locationProvider' , ...
0
votes
0answers
19 views

Rails Helper is not reloaded in a AngularJS based application

I'm using RubyMine developing a Rails + AngualrJS application. I uninstalled ruby and rubymine to get a fresh start. But I encounter a problem: the helpers not reloaded on every request, so I have to ...
0
votes
0answers
79 views

test angularjs with jasmine in rails

I'm trying to do unit tests for my AngularJS app, but jasmine just do not see the controller, though it's registered in global namespace: ReferenceError: RequestsController is not defined. Gem is ...
0
votes
0answers
82 views

managing many to many relationship in AngularJS

I have two models with a many to many association -- a Role has many permissions, and likewise a permission may belong to multiple roles. Right now I have a view which allows users to create new ...
0
votes
0answers
396 views

cross domain resource sharing with rails and angular.js

cant understand how cors work with rails in my routes.rb resources :topics resources :test match '/topics' => 'topics#index', :constraints => {:method => 'OPTIONS'} match ...
0
votes
0answers
101 views

When is using Angular (or a similar JS MV* framework) with Rails a good idea?

I've been developing a Rails app with a fairly straight-forward UI. When a user logs in, it lists a bunch of items created by the user. Each item has a couple actions. There is also a form to create ...
0
votes
0answers
108 views

angular and rails partial locals

I'm trying to parameterize angular JS variables inside my rails partials, I have searched for the right syntax and couldn't able to get one. Not sure if I'm trying to do something that's not gonna ...
0
votes
0answers
107 views

Angular & Devise Module header attribute content causing issues

Alright so I have this Angular/Rails app setup with Devise & Cancan. Now the issue Im facing is that this code app = angular.module("Meep", ["ngResource"]) app.config ["$httpProvider", ...
0
votes
0answers
108 views

jquery clone() breaks form validation

I have a field in a form generated through a directive: It starts out as ng-pristine, ng-valid, ng-valid-required. (It is populated via serverside request). There is a remove button, which, to ...
0
votes
0answers
115 views

Embed JSON into JavaScript tests with Ruby on Rails

We currently have Jasmine tests for AngularJS running in our Ruby on Rails application. With that, we use VCR to generate API JSON files with fake data. Would it be possible to embed those files into ...
-2
votes
0answers
37 views

Data not being displayed after pushing to heroku

I made a 'raffler' app (chooses a random winner) using Rails and AngularJS, which works fine on my local machine. However, when I pushed it to heroku, the app seems to break, ie., the two data entries ...

1 2 3
15 30 50 per page