0
votes
0answers
19 views

Grunt tasks are slow in yeoman application

I have an angular project build with yeoman, talking to a rails api backend. Everything works fine, except that grunt tasks are very slow. When I run grunt server --verbose: Execution Time ...
0
votes
1answer
22 views

Angularjs:Crawling ajax site

I have read many articles of how to crawl ajax site.i have read in a document that to make ajax site crawlable we have to provide html snapshot of the page.I am using Ruby On Rails as a server side ...
0
votes
1answer
43 views

Rails Route parameters in AngularJS

I am trying to build an AngularJS/Rails multi-page app WITHOUT the use of ngView- basically, I want to use Angular's data-binding and other features in my rails app while still having the views ...
0
votes
0answers
76 views

how to get rails angular app to render jade templates?

I'm trying to render jade templates from app/assets/javascripts/templates and I can't seem to get things to work. am getting chrome console errors, GET http://localhost:3000/templates/lunch.jst.jade ...
-1
votes
1answer
13 views

data not being fetched from resouce.query of angular js

I am new to angular and rails. I am trying to fetch the user from db and want to show it over screen as index page. I am able to fetch the data in the rails controller, but getting empty in angular ...
1
vote
0answers
18 views

File upload using AngularJS and Rails

I have a model BOOK that will insert the book details through angularjs controller Here is my view: <h1 align="center">Books</h1> <div ng-controller="BooksCtrl" class="container"> ...
0
votes
0answers
13 views

Angular, rails, and teaspoon test suite setup

I am having the hardest time getting my tests running correctly and I'm hoping someone can help. How do you access angular controllers/services/whatever and their methods from within a spec? I can't ...
0
votes
1answer
27 views

Passing a repeated block to a form

I have a form with multiple "li" elements that contain form fields, where the only thing that varies is one word in multiple placee. Example: li = f.label :answer_tax, 'Tax' = f.text_field ...
0
votes
1answer
79 views

AngularJS- Login and Authentication in each route and controller

I have a AngularJS application created using yeoman, grunt and bower. I have a login page. And I have controller for that to chack authentication. If the authentication is correct I am routing to ...
0
votes
1answer
31 views

Angular.js accessing and displaying nested models efficiently

I'm building a site at the moment where there are many relational links between data. As an example, users can make bookings, which will have booker and bookee, along with an array of messages which ...
1
vote
1answer
50 views

Unable to update object in angular

Right now, I am able to create objects and save them to a rails database through a json api. It is a simple todo list app that when I add an object, it goes into the todo list above the input fields. ...
0
votes
0answers
40 views

AngularJS and authentication to an Oauth2 Provider?

We have an API, Oauth2 Provider. From AngularJS client Side app, how can I implement the flow of authentication to this api to get the access token for future requests? What I am searching for is a ...
0
votes
1answer
36 views

Angular.js equivalent of `rails generate scaffold`?

I'm writing an app with an angularjs front-end and a Rails backend. One feature of the app allows standard manipulations of a list of employees. Employees can be added and deleted, listed, and their ...
2
votes
1answer
63 views

Why Rails messing with params?

I do POST http://0.0.0.0:3000/clients with the following request payload: {"name": "David Smith", "email": "[email protected]"} Both Firefox and Chrome clearly show that this is the payload. But, in ...
1
vote
1answer
72 views

How to run “grunt build” during Heroku deployment (angular+ruby-on-rails app)

I'd like to deploy an angular+rails app on Heroku. The app is built off Emmanual Oda's example code, and compiles its assets using Grunt. Instead of compiling my assets locally and then committing ...
0
votes
0answers
27 views

Angular resource query() not working

I am currently trying to build a small Todo list app in rails with a angular front end. Currently, I am able to create a Todo object and save it to the database, but I cannot return all the Todo ...
-1
votes
4answers
73 views

Do I need a server side language if I just want to create simple JavaScript apps? [closed]

My question is not about a coding issue. It's more about web development in general. I have started web development a few months ago (I do have programming experience, so I'm just new to web). I ...
0
votes
0answers
18 views

Having trouble showing data in angular rails app

I am trying to build a small rails app with angular on the front end. Right now, I am able to create a valid new object but cannot show those objects on the index view. Here is the current index ...
2
votes
2answers
42 views

Backbonejs routing VS emberjs routing

This is how I do my routes in backbonejs where the routing and its params are obtained first before deciding which external template to call. I find this is quite flexible. var Router = ...
0
votes
0answers
26 views

Trying to access rails model in angular

I have a todo list app I am trying to set up using angular in rails. I have been following along with the railscast for this. I have created three Todos in the console. Here is my js code: app = ...
1
vote
0answers
36 views

AngularJS Routes with Rails

I'm trying to use angularjs routing within a Rails application but I'm having some difficulty. I've split up my page into partials (called _events.html.erb, _categories.html.erb, and _times.html.erb) ...
0
votes
1answer
23 views

Angular, watch a variable update via AJAX [closed]

I have a cart controller, that manages cart in e-store. Ordered products are stored in scope.cart. In view I have buttons to change item's cnt, like <elem ng-click="inc(c)" />, so inc function ...
0
votes
1answer
37 views

angular rails app not showing data in view [closed]

When I go to localhost:3000/main/index, I see nothing, where I should see the blog posts in mainindexCtrl.js.coffee: I have these files in my assets/javascripts folder: angular-route.min.js ...
0
votes
3answers
34 views

One radio button for yes no values in Angular

I have a list of questions in a form that need a response of yes or no. I want to use one radio button (checked is 'Yes', unchecked is 'No). I'm using Angular and Rails. I thought of using a directive ...
0
votes
1answer
171 views

rails angular app error: Uncaught Error: [$injector:modulerr]

When I go to localhost:3000/main/index, I see this, where I should see the blog posts in mainindexCtrl.js.coffee: My blog {{ post.title }} {{ post.contents }} and in the console I see this: ...
2
votes
3answers
72 views

Why not use bootstrap 2.3.2? [closed]

We have a production Rails & Angular app that is based on Bootstrap 2.3.2. It is an internal app right now, but we will soon open it up to external clients. It is stable and there is no ...
0
votes
2answers
62 views

ng-grid overlapping tables, need to set height correctly

I have two tables <div ng-grid="table1"></div> <div ng-grid="table2"></div> Both tables have dynamically generated rows through an AJAX call on the angular side. Thus, ...
1
vote
1answer
30 views

Rake precompile breaks Javascript with undefined error

I'm using ng-grid with Rails and have replicated the first example on the home page, where: <div class="gridStyle" ng-grid="availOptions"></div> $scope.arr = [{name: "Moroni", age: 50}, ...
0
votes
1answer
22 views

Control order of files in subdirectories for rails assets

I'm using rails to drive a mostly single page app. I'm also using angular. So in my assets/javascripts i have directories for controllers, directives, filters, routes, services, etc. Some of these ...
1
vote
2answers
308 views

Angular vs Ember vs Backbone [closed]

I am a freelance Rails developer. I feel very strong in ruby and in rails and am looking for something new to learn. It seems like the Javascript MVC frameworks are really popular these days and I ...
1
vote
1answer
55 views

Angular js-User automatically likes a program

I am new to angular js.. I have implemented a website with Ruby on rails and angular in which a user can like a program..But in a peculiar scenario whenever a user clicks on a program,the program page ...
0
votes
1answer
36 views

How angularjs resource post data

Im working with a simple service, posting some data. At the moment I have a service like this: sitekServices.factory('Books', ['$resource', function($resource){ return ...
1
vote
2answers
28 views

AngularJS to Rails MassAssignmentSecurity::Error

Whilst using AngularJS with Rails I keep getting the MassAssignmentSecurity error whilst updating. I know this is due to passing attributes such as 'created_at' and 'updated_at' along with the data. ...
1
vote
1answer
41 views

Unknown Provider e-provider error while using angularjs an ruby on rails

I have a Rails/AngularJS app which works fine in local development environment. However, when I deploy this app to Amazon Cloud the AngularJS doesn't work an returns this error: Unknown provider: ...
0
votes
1answer
32 views

How to test RESTful call to database without seeding data?

I have a dropdown box that is populated using data from the database (via Angular). I am trying to test it with Capybara and Poltergeist using: select('San Francisco', from: "user_region") ...
0
votes
1answer
39 views

Deploying to heroku without require_tree in application.js

After following this angular tutorial, I'm trying to deploy to heroku. I'm getting the error: rake aborted! require_tree argument must be a directory The tutorial instructed me to the remove the ...
0
votes
1answer
48 views

Capybara Angular rspec testing for select dropdown form

I have the following dropdown menu / select implemented in Angular.js: <select id="user_accounts" ng-model="account_chosen" ng-options="item.name for item in accounts"> <option ...
0
votes
0answers
51 views

Parsing angular resource object JSON returned

I am using Angular's resources method to get a JSON back. I want to index into the object but I keep getting undefined in the console: app = angular.module("testapp", ["ngResource"]) app.factory ...
0
votes
2answers
42 views

Cross domain issue - api different domain than frontend

I am not familiar with this issue and I hope you can help. I am developing a web application. My Backend api endpoints sits under http://www.example.com/api where my front end application located in ...
-1
votes
2answers
61 views

Legalities of esignature

I am creating an app where there will be many forms that have a signature. I am planning on using AngualarJS SignIt! on top of Rails to capture the signature. From there I will store it in a ...
5
votes
1answer
65 views

Graceful degradation with angular/ rails

I have two versions of a page: one written using angular, another without any javascript at all. How could I get rails to detect if the client has javascript disabled (or is a googlebot) and serve up ...
0
votes
0answers
28 views

Route googlebot/ no javascript to different page using ruby on rails

I'm trying to make my site more SEO and JavaScript disabled friendly. Right now I'm using a lot of Angular with Ajax calls, which Google-bot can't parse. I know I can use libraries like phantom.js ...
0
votes
2answers
76 views

AngularJS: How to bind a model specified in the view (ng-bind) to a $resource available through an API?

I'm trying to connect (in Angular, at the client) the same database object through its html view, to its equivalent instance through a json API. I have a working api and $resource, and have a working ...
0
votes
1answer
140 views

how to initialize Angularjs ng-model in rails

A question about using angularjs two way binding and in rails erb files. Suppose value of input in my .erb file has an original value i.e. example.erb <input type="text" value=" <%= ...
0
votes
1answer
28 views

Rails google analytics measuring customer retention

I'm running a website made using rails/ angular and I need to measure when a user returns to the site. I want to use this data to set up conversion tracking for the site (if a user returns, it's a ...
0
votes
1answer
53 views

'Show' action with Angular and Rails

I'm trying to list the contents of a post using Angular with Rails, but totally stuck. My controller: var myApp = angular.module('myApp', ['ngResource']); myApp.controller('categoryController', ...
0
votes
1answer
48 views

Angular $resource query gets a 401 on PUT when no CSRF is defined and a 404 on GET when CSRF is defined :/

I'm currently stuck on an update list problem. I use Rails and AngularJS. On JS side, I plugged jQueryUI for sortable feature with Angular $resource feature to read, update (and in second step, ...
1
vote
0answers
35 views

Handling inbound links in AngularJS

I have a single-page application and I have all my internal links working with ng-click, which dynamically loads data into ng-view. I'm trying to figure out how to handle inbound links from outside ...
0
votes
1answer
171 views

Doorkeeper /oauth/token - blank response

I have a front-end in AngularJS and back-end in RoR with Devise + Doorkeeper + RocketPants. For now I have properly working CORS, I can succesfully get json responses from my API (if I turn off ...
2
votes
1answer
111 views

How to use native anchor links with angularjs

I'm using angularjs on a rather large flat documentation page. The page has some navigation thats designed to use traditional url hash links. The urls look like so: ...

15 30 50 per page