-1
votes
0answers
11 views

AngularJs-Webpage loading issues in specific browser

I am implementing a website using Angular js and javascript.I have also used Ruby on Rails in the back end. The thing is i have made the whole site with the help of cookie because i have time zone ...
1
vote
1answer
17 views

Angular in rails mounted engine

i wish to use sngular in rails mounted engine. now what i added: in master applications: "ng-app" to the main html tag angular.js file in assets/javascript in the rails mounted engine: div ...
1
vote
0answers
37 views

how to implement cookie value in ruby erb file

Hi I am a newbie in rails. I have implemented a timezone for a website and I have made a drop down box via javascript. The problem I am having is I am able to select the values but I am not able to ...
0
votes
1answer
18 views

Angularjs $resource to match up with Rails API

I'm trying to make an AngularJS $resource that matches up to these routes in a Rails API: search_notes GET /notes/search/:term(.:format) lesson_notes/notes#search notes GET ...
0
votes
1answer
24 views

AngularJS: Maintain list of progress bars dynamically

I'm an AngularJS beginner, and am trying to build upon a small Rails app that performs some operations in a collection of threads. Depending on user actions, there can be any amount of simultaneous ...
0
votes
0answers
41 views

Correct way to login users through API and session variables

I have a ruby on rails app that simply serves as an API. Users must pass a valid key in with every request. Now I'm building a front end for the app using AngularJS. Angular takes input from users, ...
0
votes
1answer
17 views

Rails - Saving a model with has_many :through association from AngularJS layer

I'm making an Angular JS app with Rails in the back end. I'm trying to update the tags associated with a note, but I can't figure it out. I'm pretty sure it has something to do with the way my data is ...
1
vote
1answer
50 views

How to compare AngularJS value to ruby on rails variable value

I am using Firebase in a pretty simple chat application. One of the features i'm working on now is the ability to update messages in the chat room, but only if you were the original author. For the ...
0
votes
0answers
11 views

Angular resource routes rails style

Is there in angular something like resource :posts in rails? I mean is there a function which allows to instantiate routes in such a manner?
0
votes
1answer
50 views

“TypeError: Cannot read property 'name' of undefined” error after Angular page refresh

Sorry if this is a simple problem, I am a newbie to angular and trying to integrate it as a front end for a basic rails blog app. I am a bit stuck on a problem that I think is related to angular ...
0
votes
0answers
21 views

angular resource passing unwanted parameters

I am trying to setup a server side authentication service using rails like this : Javascript: angular.module('myApp',['ngResource']) .factory("Session",['$resource',function($resource){ return ...
0
votes
1answer
18 views

angularjs add a model layer

I am using angular with rails backend and I am using $resource to interact backend API. so I have a User service which is a $resource instance App.factory('User', ['$resource', function($resource) { ...
0
votes
1answer
20 views

How do i display validation error from controller using angularjs?

I am new to angularjs and totally confused,i am trying below code and dont know if it is right way. index.html <div class="input-group" ng-controller="validationController"> <span ...
1
vote
0answers
24 views

Angular templates vs. Rails partials best practices?

I have a profile page in rails, say profile.html.erb. In that page, I have tabs- About, Contact, Posts, etc. 1) Currently, I have it implemented such that the page is an angular module, and each tab ...
0
votes
0answers
21 views

Example app for AngularJS IE9 URL rewriting

Is anyone aware of an example app that uses URL rewriting on the server side (preferably Rails), in order to accommodate AngularJS on IE9? In other words, I'm serving an app at /v2/challenges/new, ...
1
vote
0answers
35 views

Angular style guide - with Coffeescript?

A colleague found a guide, apparently from google here: https://google-styleguide.googlecode.com/svn/trunk/angularjs-google-style.html Reading this over, I have a few concerns based on my usage of ...
0
votes
1answer
34 views

Understanding the AngularJS IE9 Issues

I've been working on an AngularJS/Rails app that must support IE9. From what I've read, I should set html5Mode to true in my AngularJS config, which will use the HTML5 History API for browsers that ...
1
vote
0answers
33 views

how to call an angular scope with dynamic variable name?

Lets say i have 2 scopes defined in my controller as shown below $scope.first = {a,b,c} $scope.second = {d,e,f} i want to use them in my html select list but the problem is that i can not call them ...
0
votes
0answers
20 views

how to properly integrate angularjs in requirejs in rails application

I am new to angularjs and I would like to kick start my rails application with requirejs. requirejs.config({ baseUrl: '/assets/', paths: { jquery: 'jquery', angular: ...
0
votes
0answers
25 views

Integrate Angular.js with active_admin

I need to use Angular.js with active_admin, but couldn't find a how-to.
0
votes
0answers
21 views

ruby on rails how to make external http application interface

I am trying to use the library. In order to upload file to aws3, it requires to create a service script, the service script returns a json message, for the angualrjs directive using: <div ...
0
votes
0answers
27 views

Failed to call the server side code on ruby on rails 4

I am trying to call the ruby server side code in the front end. The ruby server side code is: HERE, in the forth point. Here is my code, but seems it does not work, I am wondering how should I ...
1
vote
1answer
19 views

Using rails-assets-angular gem in mountable Rails engine

I'm trying to bootstrap AngularJS into a Rails engine using the rails-assets-angular gem. However, when I start the server on the parent app (the app my engine is mounted in), I get this error: ...
0
votes
1answer
22 views

Need guidance on rails with angular js [closed]

I have some experience with Ruby and basic java but not with any web development projects or javascript. I want to learn Rails with Anugular JS. Given my background, can you please point me to some ...
1
vote
0answers
37 views

AngularJS: Returning to original page in single page application reloads JavaScript files

I am having a problem with my single page application reloading pre-loaded JS files, causing the web application to fail. I am using AngularJS for a single page application, with a Rails 4 server ...
0
votes
2answers
51 views

How to use angular resource with rails API

I want to use angular resource to interact with my rails backend, the build-in $resource service is not fully compatible with rails API, like PUT is not support by default, I have to add custom action ...
0
votes
2answers
30 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
19 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
32 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
8 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
51 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
15 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
2answers
65 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
39 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 ...
2
votes
1answer
55 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
30 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
39 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
39 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
48 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
61 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
23 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
40 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
2answers
73 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
38 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
30 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
34 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
30 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
46 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
31 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
44 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 ...