0
votes
0answers
19 views

Getting “Error: Grid argument is not a Grid object” error in Angular ui.grid (ng-grid) after minification

I am getting Error: Grid argument is not a Grid object only in prod (its working in dev), after javascript minification. I delved into the ui.grid's code, and my initial thought is that there is a ...
0
votes
1answer
18 views

After upgrade to Angular 1.2 problems linking to an anchor tag

I recently upgraded to angular 1.2 and any links to anchor tags are now being converted from: http://homepath.com#my_anchor to http://homepath.com/my_anchor Any suggestions on preventing that? ...
0
votes
2answers
38 views
+50

How to make links inside ng-repeat indexable by SEO?

I have code like this in the root page (e.g. http://www.example.com): <div ng-repeat="url in urls"> <a ng-href="{{url}}"/>url</a> </div> Each url is just a ...
0
votes
0answers
28 views

How to Pass Data from angular to ruby on rails

Hi guys I have been reading tutorials on how to pass data from angular to rails but many of them are no clear enough for someone with only 2 weeks old on angular. I have a input box which every time I ...
0
votes
0answers
17 views

Inconsistent errors with Rspec, Capybara and phantom.js

I have a pretty basic test that sometimes works, and sometimes fails with inconsistent error messages such as: Failure/Error: Unable to find matching line from backtrace ...
0
votes
1answer
16 views

Rails CSRF token issue in Angular routes

I am using AngularJS routes with rails. For authencation I am using using Angular Devise directive. I am facing some issue with CSRF token. User Controller function ...
0
votes
1answer
29 views

Css, Angular, and Javascript not working on Heroku

I finished up a project of mine (blog), and uploaded it to heroku. Everything works fantastically on my local setup, and I wanted to see if it looked good on heroku. The site is jmnewman.herokuapp.com ...
0
votes
1answer
30 views

how to pass data from angular to rails [closed]

I'am very new to angular, only a week old. My question is how do i pass data from angular to rails? As you can see i only need to save whatever is been input it in {{entry.name}} into rails. Thank you ...
-1
votes
1answer
17 views

use $httpProvider.responseInterceptors in rails application

I want use $httpProvider.responseInterceptors in a rails application, but when I add this to project, I get below error in chrome console and project isn't run. Uncaught Error: [$injector:nomod] ...
0
votes
2answers
31 views

Argument 'Controller' is not defined

I am making a little rails/angular project where I am trying to return a list of data from Instagram. Rails is just acting to serve files, and then will be deployed to heroku. The rest of the app is ...
0
votes
1answer
24 views

Angular+rails deployed on Heroku… curly brackets display, doesn't actually pull data

I deployed an application to Heroku that uses Angular.JS on rails. It works when I open it locally, but on Heroku, the {{}} brackets dont pull data, instead it just displays as {{}} (e.g. ...
1
vote
0answers
29 views

NoMethodError (undefined method `build' for #<Class:0x00000006371f30>)

I use angularjs and InheritedResources gem in my new rails project. I want use association in this project. I find Singletons for association with InheritedResources. I create 2 model and complete ...
0
votes
0answers
23 views

ngResource resourceProvider error with rails

Folowing the angular railscasts tutorial I have a rails app with angularjs-rails, both angular.js and angular-resource.js are being included in the head of my html file. my welcome#index.html.erb ...
1
vote
1answer
25 views

ActionController::RoutingError (No route matches [POST] “/forums/comments”)

I use inherited_resources 1.5.0 gem and angularjs in my new rails project. I have 2 model: forum and comment. I create all form with angularjs and get data from user and post to rails server to create ...
0
votes
0answers
17 views

Image not rendered if the image name does not end in “-coffee”

This is an angular project generated using yeoman with this command "yo angular --coffee". We use ruby-on-rails mainly as an api server. I just noticed this morning that if I add images to ...
0
votes
1answer
18 views

Rails Nested Resource Not Displaying Correct Index

So I have two models in Rails. However, when I visit the path /lectures/:id/users.json I do not get the users associated withe the particular lecture. I get ALL the users. I'm not sure what I'm doing ...
0
votes
0answers
15 views

Load rails model data to front end on background job event

my web application is using AngularJS and Ruby on Rails. Currently, there are some background tasks that the end user triggers that get processed by delayed_job. The background task produces ...
1
vote
0answers
20 views

Save paperclip attachment to DB via AngularJS in Rails 4

I'm trying to save a photo into DB via AngularJS in Rails4. I used paperclip gem for the attachment setup class User < ActiveRecord::Base devise :database_authenticatable, :registerable, ...
1
vote
0answers
30 views

AngularJS is not sending-X_XSRF-TOKEN

I am developing an Ionic mobile app to talk to my backend Rails server using a JSON API. I have read that AngularJS will automatically handle XSRF protection by sending a header X-XSRF-TOKEN on the ...
0
votes
0answers
25 views

angular and rails form not submitting

I am working a rails app using angular. I have a form inside a main form. the only job that the angular form have is get the text from the input and place in another class. My problem is that the main ...
0
votes
1answer
17 views

load javascripts from asset pipeline in rails

In a rails project, I want just use controller and model of rails application. For this purpose, I use angularjs. I put my angularjs file in assets/angular directory and I route url and set templates ...
0
votes
1answer
12 views

Declaring multiple scopes based on user input Angular-Rails

I have a $scope of 1 to 5 lists, depending on user input. In each list there will be an array of items. I have my list names as list1, list2....My problem is when I declare the $scope using ...
0
votes
0answers
28 views

Angularjs in rails: angularjs javascripts don't load

I want use angularjs in rails. for this, I want deactive rails view and just use angularjs html file. I use angular-resource.min.js for routing the url and then I create index action in my ...
0
votes
0answers
9 views

testing angularjs within a rails app

So far the only resource I've come across with this specific requirement is using a the ruby gem jasmine. I also noticed there are a ton of other resources out there such as protractor, karma and ...
0
votes
0answers
41 views

AngularJS with Devise - Unprocessable Entity

I'm trying to create a sign up process via AngularJs + Devise in Rails 4 I'm following this book-> Riding Rails With AngularJS /users/registrations_controller.rb class ...
0
votes
1answer
39 views

angularjs in rails:add data to database and show without reloading

In a rails project, I add data to database by http.post from angularjs controller. I have below code to do this: RestaurantIndexCtrl.js.coffee: restauranteur.controller 'RestaurantIndexCtrl', ...
0
votes
0answers
20 views

route rails view in angularjs in rails

In a rails project, I use angularjs. I set my angularjs view in public folder and use ngoute for set url to template. I have a problem with this, when I use ngRoute, I can just use template that exist ...
1
vote
0answers
84 views

ng-tables using custom names for my filters

I'm trying to use ng-table filters with a search backend called ransack (under Ruby on Rails) is there a way to use custom filter names? eg: description_cont When used with ransack this will look ...
0
votes
1answer
22 views

ng-table filter after hitting submit

I'm using ng-table in AngularJS with a Ruby on Rails backend. I'm using ng-table to display 10 rows at a time and I'm doing the search/sort and pagination on the server side. The problem I'm having ...
0
votes
1answer
33 views

Accessing 9gag API in Angular.js

I am making a simple angular/rails app as a 9gag viewer, just for practice. I am using the unofficial api and it seems to work. I set up the rails app, and rails is just serving angular. I can call ...
0
votes
0answers
38 views

Rails 4, Devise and Angular : $resource on account update

I'm currently working with Angular, Rails 4 and Devise. I want to be able to update the current user account through Angular. To start, on my Rails side, I needed to have a custom Registration ...
0
votes
1answer
71 views

Upload file with paperclip and angularjs

I'm trying to implement this Angularjs upload in my rails application: Angular File upload This is my photos_controller: def create @photo = current_user.photos.new(photo_params) respond_to do ...
0
votes
3answers
14 views

Angular $http post() format Defaults to HTML on Rails

I have a factory that exposes a create() function which uses $http.post() underneath. For some reason when it is called from an ng-click the request is being formatted as HTML. All of the params are ...
-1
votes
0answers
24 views

POST request hangs

I'm sending a POST request to get back a filtered report. I send my first few and they are pretty quick, no more than a second or two. On about my third request the request seems to hang, and doesnt ...
0
votes
2answers
26 views

Create a record in Rails from AngularJS

I have an Angular application that sends http requests to a rails server. I'd like to make a request to create a record (in the table SavedQueries). The Angular app is actually making a very simple ...
3
votes
1answer
32 views

Can you use AngularJS with Rails Models

If the title question is unclear, let me clarify. Though the question is conceptual, rather than physical. I have a rails application with a few models (order, buyer). I recently discovered angularjs ...
0
votes
1answer
23 views

AngularJS application not downloading file

I have a rails server that generates a csv from an http request, like this: @results = some_json_string require 'csv' csv_string = CSV.open("results.csv","wb") do | csv| ...
0
votes
2answers
37 views

How to serve a file for download from Rails?

So this is probably a simple question, but I've never done it before. I have a Rails action that queries a database and creates a csv string from the query result. I'd like to take the query string, ...
0
votes
0answers
28 views

Rails 4 + AngularJS: templateUrl for directive not found?

I'm trying to create a directive in AngularJS to split my HTML into reusable partials: app/assets/javascripts/products/directives/products.js: app.directive('productsfilter', function() { return { ...
0
votes
1answer
34 views

interpolating a '#' in a rails url

I have a a webpage which has different tabs. The tabs used to be different pages, but now through angularjs they are effectively a 'single-page' with no loading between each clicked tab. So every URL ...
1
vote
2answers
54 views

XMLHttpRequest No 'Access-Control-Allow-Origin' header is present on the requested resource

So there are a handful of questions on StackOverflow addressing this error, but of the 10-15 I checked, I could not find a solution to my exact problem. I am running an Angular app (port 9000) and a ...
0
votes
0answers
11 views

Rails + Selenium: Tests fail if asset is loaded by AngularJS

I need to dynamically load image URLs using AngularJS. They work in my development and even in my tests I can see the images uploading properly through the browser that Selenium opens. However, my ...
3
votes
1answer
38 views

Angular + .nghaml template: Referencing Precompiled Image Assets

I'm using .nghaml for my templates and using the following gems for Angular integration: gem 'angularjs-rails' gem 'angular-rails-templates' My Rail view layouts are name.html.haml and using ...
0
votes
0answers
10 views

Rails 4 + Angular + Selenium: No route matches [GET] “/%7B%7B%20product_color.color.image.url%20%7D%7D”

I'm getting the error: No route matches [GET] "/%7B%7B%20product_color.color.image.url%20%7D%7D" when I use selenium with my cucumber tests even though all the images are loading properly (I sleep 10 ...
0
votes
0answers
27 views

AngularJS + Rails 4: including $location provider causes all links to stop working?

In my Rails 4 app when I land on a particular page (my products#show page, ex: /products/30) and I click on any of the links on the page, the browser doesn't move. However, the URL changes with each ...
0
votes
2answers
33 views

Repopulate Angular app data with new data from form submission from a rails api

I have a rails api that sends default input to an Angular app. The angular app receives json at localhost:9000/api/query, and then the view at localhost:9000/#/query styles that json into an unordered ...
1
vote
1answer
27 views

My ng-change is not firing on my Angular/Rails app

I am building a notecard application and for some reason my ng-change is not firing at all. I cannot figure out what the issue is. I tried breakpoints in the JS to verify that it is not actually ...
0
votes
1answer
60 views

angular ui router, back button does cause state change

I'm using angular in a rails app and have ui-router set up with several states. name: 'item' url: '/items' child states name: detail url: "/{item_id:[0-9]{1,4}}/detail" parent: item I'm ...
0
votes
1answer
24 views

ActiveRecord::RecordNotFound in Api::V1::PostsController#show

I am trying to follow Rails Todo API Part 1 from egghead.io https://egghead.io/lessons/angularjs-rails-todo-api-part-1 I am trying to access localhost:3000/api/v1/posts and the page should show the ...
0
votes
1answer
18 views

Rails 4 routes + AngularJS: How would I grab the products/:id parameter?

I'm trying to use pure Rails routes with AngularJS controllers. How would I grab the product id (30) of /products/30 in my Angular controller if the route is being generated by Rails? ...