0
votes
0answers
24 views

What is the simplest path to a RESTful JSON backend served up in Java for an AngularJS application? [on hold]

I wrote a prototype in Rails in a couple weeks that has a couple forms, combined with AngularJS and Bootstrap to create a fluid UI backed by REST web services. When finished though, it was discussed ...
0
votes
0answers
11 views

Restangular CORS set Acecss-Control-Origin-Header

So I have a Rails+Angular application. For those who have Rails experience I have set the following in my application_controller: class ApplicationController < ActionController::Base ...
1
vote
0answers
29 views

Change source VideoJS using AngularJS with Ruby on Rails onClick

I'm currently learning Angular.js and integrated it with Ruby on Rails, I have a sample project that list all the Railscasts videos and displays the selected video on VideoJS. Here's my current ...
0
votes
0answers
8 views

AngularJS TemplateURL in Rails

I am trying to integrate angularjs in my rails application to animate the views. I have a single page application and clicking on a link will slide one view out and another into view. Similar to the ...
0
votes
1answer
23 views

angularjs and rails 4 routing

Here is my angular module and route var app = angular.module('app', ['ngRoute']); app.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/photo', { templateUrl: ...
4
votes
2answers
58 views

One Rails route that responds to html and json with different queries

I have a simple index action in my controller that serves html and json formats. def index @records = Model.all respond_to do |format| format.html format.json { render json: @records } ...
0
votes
0answers
27 views

Uncaught TypeError: Cannot read property 'apply' of null onReadyStateChangeReplacement

I'm building a Rails app with Angular built in. Everything's working just fine, but I've notice a strange error when I first land on one of my Angular-heavy pages after following a link. The Angular ...
0
votes
1answer
9 views

How can I have a page showing reservations update when a customer adds a reservation from another computer (using Rails)?

I would like to have a page where a restaurant can log in and see all of their current reservations/take-out orders, and I want this page to automatically update when someone (from another computer) ...
0
votes
1answer
24 views

TemplateUrl in Rails not linking

I can't for the life of me get templateUrl from a custom directive to link to html template file in my Rails app. I've tried using the angular-rails-templates gem as well as some other methods. ...
1
vote
2answers
39 views

Amazon S3 GET object Access Denied

Im developing an AngularJS (frontend) + Rails API (backend) website. Im using Amazon S3 to store images. Im able to upload an image from Rails to S3 using the aws sdk. I see the image in my S3 ...
0
votes
1answer
19 views

Getting images from Amazon 3 in AngularJS

Im developing a website with AngularJS in frontend that sends requests to a Rails 4 API backend. I have to manage quite images, so I would like to use Amazon S3 (but Im newbie with this and Im a bit ...
0
votes
2answers
50 views

Using Amazon S3 with AngularJS frontend and Rails API backend

Im developing a website with AngularJS in frontend that sends requests to a Rails 4 API backend. I have to manage quite images, so I would like to use Amazon S3 (but Im newbie with this and Im a bit ...
3
votes
1answer
88 views

Proper $resource POST parameters to Rails

I'm trying to POST some data to my Rails 4 API. The resource: App.factory 'House', ['$resource', ($resource) -> $resource '/api/v1/houses/:id', { id: '@id' } ] The JSON representation of the ...
0
votes
1answer
33 views

Rails + AngularJS app, what should the rails controllers respond with?

I'm a newbie in AngularJS, and I'm trying to build a Rails-Angular web app. I designed the app to have a main layout with header and footer, and nested layouts for each main section of the app. I'm ...
1
vote
1answer
58 views

AngularJS + Rails: Back Button “WARNING: Tried to load angular more than once.”

I can go my app and change pages without an issue. Using the back button is also not a problem...unless I return to the point in the history where I first opened the application. So, index -> pg 1 -> ...
0
votes
0answers
13 views

Combine rails views with angular bindings

I'm trying to create an app, which uses rails views in general. However, there are some points where i want to use angular magic to update page parts. Let's discuss it on stack overflow example - ...
0
votes
3answers
40 views

Why isnt my view data populating in my view?

A few days ago I started learning AngularJS (both standalone and on rails). I have the below controller, service and view setup. Based on my console.log messages, it appears that my data loads ...
0
votes
0answers
25 views

Rails + Angular: Redirection After Sign-In/Up

I'm using Rails + Devise for my log in and sign-up, but the vast majority of my front-end uses angular routing. When someone attempts to go to a specific page without being logged in I want them to be ...
0
votes
0answers
28 views

Angular + Rails: PopOver Not Having Its Scope Updated

UPDATE: Solved using angularjs: force re-rendering/ full refresh a directive template and Updating HTML element outside of ng-view + testing to redefine the issue appropriately. Don't know whether I ...
0
votes
0answers
67 views

AngularJS frontend and Rails backend with AWS in Ubuntu

I would like to discuss about AngularJS and Ruby on Rails working together and deployed in AWS (Amazon Web Services). So far, I have a development environment with an AngularJS frontend that sends ...
0
votes
2answers
111 views

Angularjs - Cannot read property 'split' of undefined

I am trying to split the date entered using the text field. I want it in an array. In html file <%= text_field_tag :checkoutdate, params[:checkoutdate],:placeholder => 'Select Date', ...
0
votes
1answer
26 views

Rails - Include different assets for mobile and desktop for an AngularJS app?

How can I include a different set of assets (CSS and JavaScript) for AngularJS views designed for phones and AngularJS views designed for desktop from a Rails API? The default template ...
0
votes
0answers
33 views

Angular.js changes doesnt applying to rails api

Im dealing with some problems when changing data at the angular.js controller, the data changed in angular, doesnt apply to the rails api. The data seems changed but when refreshing the page, the ...
0
votes
1answer
39 views

Breeze EntityManager cache not cleared after successful server save

I've been trying for a few days now to get the Breeze 1.4.9 to work with a rails back end in a different manner than the Breeze Ruby SPA sample. I would rather send bulk save changes instead of ...
0
votes
0answers
15 views

rocketpant API default json structure not compatible with angular resource

I am using angular + rails rocketpant for current project. a design issue bump up when dealing with data structure between angular and rocketpant. Some background information: angularjs use ...
2
votes
1answer
24 views

Is there an equivalent of Rails each_with_index in an Angular directive?

Say I have code like this in Angular: <ul> <li ng-repeat="person in people"> {{person.name}} </li> </ul> Referring to a model like this: [ {name: "Dave"}, ...
-1
votes
0answers
20 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
23 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
40 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
21 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
37 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
46 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, ...
1
vote
2answers
33 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
58 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
16 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
65 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
1answer
34 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
22 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
25 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
30 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
32 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
50 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
45 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
34 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
30 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: ...
-1
votes
0answers
33 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
22 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
28 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
23 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 ...