0
votes
2answers
11 views

Completed 406 Not Acceptable error when attempting Angular.js query() function

I want to show index of cards by using Angular.js and Rails. This is my code. # app/views/decks/show.html.erb <div ng-controller="DeckCtrl"> <form ng-submit="addCard()"> <input ...
0
votes
0answers
14 views

Should I implement all pages Angular.js if I use Rails?

Angular.js is often introduced as a "single page application". I want to integrate Angular.js with Rails, but I don't how. I expect to use Angular.js to implement all pages? Is it OK to implement ...
0
votes
1answer
27 views

ng-repeat with jquery and rails

Im using ng-repeat to iterate over some json objects and trying to add {{code.id}} as a parameter for a rails route e.g. card_url( @car, {{card.id}} ) I know this is not possible due to the rails ...
0
votes
0answers
5 views

Custom post using angular rails resource

Hi I'm using rails and angularjs with the angularrailsresource gem. I need to do a custom post request to a rails resource I have defined called 'Comment'. I tried using the $post method like this: ...
1
vote
1answer
36 views

Angular Js curly braces in rails erb

Does anyone know if it is possible to render angular js curly braces type {{ }} in ERB as parameters. eg. <=home_url( {{code.id}}, @code)/>
0
votes
0answers
13 views

how to upload file to Amazon S3 based on angularjs

I am trying to using the module: https://github.com/asafdav/ng-s3upload I followed the steps they listed, when I come to the forth step, It provides me the ruby example for creating a local service, I ...
2
votes
1answer
30 views

Rails 4 Asset Pipeline: Asset missing fingerprint in asset_path from js

I am deploying a Rails 4.0 application which includes HTML partial templates as assets for our front-end javascript framework. Although these templates are part of the asset pipeline and are properly ...
0
votes
0answers
17 views

How to remove redirects in Rails/Angularjs html5 mode

How can I avoid the performance hit each time a user refreshes an angularjs page when using html 5 mode with rails? I am using Angularjs html5 mode Ruby on Rails route redirects. With my setup if I ...
1
vote
0answers
24 views

Rails API + AngularJS + Websocket-Rails gem

My server is running the websocket-rails gem to handle websockets. I'm having trouble using websocket-rails with a phonegap project that uses angular because I need to initialize the websocket-rails ...
1
vote
0answers
23 views

AngularJS html5mode and rails routes

I have followed all the github issues on HTML5Mode breaking Angular apps in 1.5. I am having the same problem but none of the fixes are working for me. Im doing the following: <base href="/"> ...
0
votes
0answers
37 views

Update an Object that has unknown attributes

I am using angularjs with rails 4. The first page that loads, loads all the data in one object. In my job model. I am using grape Api to expose methods I need to use. class Job include ...
0
votes
0answers
33 views

Consuming a rails json api with angularjs

I'm new to angularjs/clientjs and would like to consume a rails json api with angularjs. After some research I wrote the ff: code but when I visit http://localhost:3000/users I get plain json. ...
2
votes
1answer
39 views

Rails 4 production angularjs controller is not a function, undefined

In my development environment my angular pages respond just fine. Once changing my environment to production when I visit my pages with angular content I get an error in the console saying: Error: ...
1
vote
0answers
31 views

Problems with loading events from rails generated JSON to FullCalendar by Angularjs

I'm new to AngularJS, and I've been trying this for a while but really cant solve my problem. When I was using ui-calendar for Angular, it has the "TypeError: undefined is not a function" problem, ...
0
votes
0answers
13 views

Stack Overflow in AngularJSRailsResource during deserialization

I'm having an issue nesting resources, during serialisation due to the recursive structure of my data. I'm using AngularJS-Rails-Resource for my serialization. I can't tag this post as such because I ...
0
votes
0answers
21 views

Rails App to Angular: HAML + Rails Helpers

I'm trying to move my full-stack rails app over to Angular a page at a time. I'm using ui-router (https://github.com/angular-ui/ui-router) and angular-rails-templates ...
1
vote
1answer
43 views

Rails Api + AngularJS + IonicFramework

I want to start a new project and im not sure, if im using the best setup/approach. The project is kind of a list directory without high computing power needed. I planned to build an website with ...
1
vote
1answer
33 views

Rails routing + AngularJS routing

I have the following code in my angular app. app.config(function($routeProvider, $locationProvider) { $locationProvider.html5Mode(true); $routeProvider ...
0
votes
0answers
19 views

AngularJS with Rails partials

I've begun integrating AngularJS with an existing Rails application. Everything is set up closely following the Rails way. What I'm curious about, and haven't been able to find information on, is ...
1
vote
1answer
24 views

capybara waiting for ajax without using sleep

I'm using Capybara 2.x for some integration tests for a large Rails/AngularJS app and I've come across a test in which I need to put a sleep to get it working. My test: describe "#delete", js: true ...
0
votes
1answer
18 views

Failed to load resource in assets/templates/name.html

I have a working copy of an Angular app backed by a Rails app. I put the Angular templates inside app/assets/templates/devices/ and when I need to use a template, I do it like this: when("/devices", ...
0
votes
0answers
33 views

Rails and Angular: Public API vs front-end API

Our Rails 3.2 application has been migrated to a Rails 4 backend, serving data to an Angular front-end. All Rails view code has now been removed, and in fact there are no more .html.erb templates, ...
0
votes
1answer
23 views

How to write path redirect in ruby on rails and angularjs

Sorry that I am new to ruby on rails. I am trying to create a directive in angularjs. What I was doing is create an html file in folder view/forms, named topRight-buttonGroup.html Then I just ...
0
votes
2answers
41 views

Store status between forms in AngularJS?

I am going to try to be as specific as I can. This is what I am trying to accomplish: I want to be able to show a User, which kind of shoes fit its needs. The user will be shown 4 forms, one at a ...
0
votes
2answers
56 views

Why use @ sign when creating an AngularJS controller in Coffescript?

I am following a tutorial to get introduced AngularJS with Rails 4. At some point the author creates an Angular controller by doing this: @restauranteur.controller 'HomeCtrl', ['$scope', ($scope) ...
0
votes
1answer
25 views

passing javascript data to ruby methods

Suppose I have {{data}} AngularJS data, that I can evaluate through <%= j "{{data}}" %> How can I pass this data to some ruby method inside my view (for example some helper method) ? <%= ...
1
vote
1answer
21 views

Doing End to End Testing on the Admin side with Rails and Angular

I'm writing a Protractor test and right now it is as simple as: describe("admin page", function() { it("will display the admin page", function() { browser.get('/admin'); }) }); But the ...
0
votes
1answer
36 views

Javascript plugin written in AngularJS

I made an app in Rails and AngularJS. A startup approached me to port the technology over to their site, but they have very limited technology resources, so the idea is to make it very easy to ...
0
votes
1answer
30 views

using rails helpers in angularjs templates

I'm working on a Rails 3.2 + AngularJS app and have put all my angularJS code under a rails route called 'api_path' (EG: /api#) When setting up a link to CRUD functions such as 'show' in my AngularJS ...
0
votes
0answers
26 views

AngularJS Not Rending Unless I Reload the Page

This is a weird problem. I'm using Ruby on Rails and I have a simple angular app that uses ng-model. That's it. Dead simple. It works when I pull the page up. I type my name in the input and it binds ...
0
votes
1answer
9 views

How to init an angularjs app from rails view

When I was using backbonejs, I used to init the whole app from rails template using some init function. How can I do it using Angularjs? I haven't found a way to call some init function in a Angular ...
1
vote
0answers
34 views

Render json objects with Angular $resource Rails API

I'm writing my own API controllers using Angular $resource. Is it better to render all objects on the RAILS side controller with 1 resource, or make 3 different resource calls. ...
1
vote
1answer
54 views

Using a JSON user object for Authentication in AngularJS

So I've got an question about authentication and have been wondering how other people might handle this situation. I'm currently running an Angular app that is built on a Rails API. So far for ...
0
votes
2answers
23 views

RoR - Angular Error: Unknown provider: mWebSrvcProvider <- mWebSrvc

My Angular code works just fine on it's own, but once I place it inside of a RoR project, then I receive the error that you see listed in the title - //all the common / models are added to this.. so ...
-1
votes
0answers
18 views

Grunt not serving up local assets

I'm having an issue with a Rails/Angular app I'm working on. I'm using Rails for the backend/API and Angular for the front end. I recently cloned the repo from GitHub after a co-worker had worked on ...
0
votes
0answers
9 views

Angular and rails text_field_tag integration

This is my first attempt at Angular.js Im trying to set an input value based on a different input value. So, the user types in "Red" into input 1. The value attr of input 2 should then be "Red". ...
0
votes
1answer
19 views

404 not found with api call - Angular to RoR

I am a newbie with Ruby on Rails and I am trying to figure out ways to connect Angular to RoR in a very simple way Here is my service mWebApp.service('mWebSrvc', function($http, $log) { ...
0
votes
1answer
32 views

AngularJS not showing my ng-view

I'm trying to do a simple angular app with rails. For some reason my <div ng-view></div> html tag shows as <!-- ngView: --> when I view the inspector. I'm not getting any errors in ...
0
votes
1answer
17 views

Angular cannot access returned data

In my Angular / Rails app, I am uploading a spreadsheet using the angular-file-upload gem. https://github.com/danialfarid/angular-file-upload I pass the spreadsheet to the Rails backend, and it ...
0
votes
1answer
20 views

$.fileDownload library works incorrect with sending array with “POST”

I have following code: $.fileDownload("url", { httpMethod: "POST" data: params: [{key: 1}, {key: 3}] }) And server recive: {"params"=>{"0"=>{"key"=>"1"}, "1"=>{"key"=>"3"}}}, ...
0
votes
0answers
31 views

How can we do SEO for an AngularJS site with angular-translate?

we have a website that is serving both chinese and english version using angular-translate. The frontend determines the language settings. It is fine from client side but when google bot crawls our ...
0
votes
1answer
55 views

AngularJS and rails cors headers not working

Im trying to build an angular spa but have trouble with cors. My api runs on rails. GET requests works without problem but POST, PUT, DELETE does not work. The message is: XMLHttpRequest cannot load ...
0
votes
0answers
20 views

Rails cookies with chinese characters causes wrong string

I develop app with rails 4 + and angular 1.2.14. When I try to save a chinese username to cookie. And I read it via angularjs $cookieStore. I get a strange string which is unreadable, basically, I ...
0
votes
0answers
11 views

How do I get the Carmen gem to output a JavaScript object (for a AngularJS app)

Can someone please let me know what is the best way to get Carmen to output a country object and the related state/province/region object to be used in an AngularJS app?
1
vote
1answer
54 views

Benefits of batman.js in angular.js?

I am planning to start a new complex project with ruby on rails, and I am currently thinking of which frontend-framework to use. I have never used one before. Reading the docs, batman.js becomes ...
0
votes
0answers
45 views

can't navigate away from angular page in rails app

I'm trying to use Angular and ui router in my rails app and I think I'm almost there. It all works and angular displays my partial in the correct place but I can't seem to navigate away from the ...
1
vote
1answer
33 views

Rails or AngularJS to prototype? [closed]

I do product R&D for startups: test concepts, iterate, settle on minimal features then build a frontend/lightweight app that proves the concept and will integrate with unknown backend systems for ...
-3
votes
2answers
40 views

Edit complex JSON [closed]

What is the best way edit complex JSON? For example I have JSON: {"persons":[{"id":0}],"fios":[{"full_name":"Aksyonov Sergey Valeryevich \n","last":"Aksyonov ","first":"Sergey ","middle":"Valeryevich ...
1
vote
0answers
53 views

angularjs Strange issue-Google voice search issue with website

I have implemented a website with the help of angularjs,jquery and ruby on rails as back end. I have also used #! in the url of the website.. Now to make the website crawlable I have used ...
0
votes
0answers
24 views

Rails Controller Action Call Within Angularjs

I would like to run CRUD actions implemented in a Rails Controller via Angularjs scripting (in the view) in order to avoid the user leaving/refreshing the page. I want to harness the power of Rails ...