0
votes
0answers
16 views

Angular SEO optimization

I have a project on Rails. We're using Angular.js for the front-end. All data is taken out of JSON. Is it possible for the Google bot to wait until all the JSON for the page loads, and index this ...
0
votes
0answers
18 views

angularjs update template var in ng-repeat

I have a question: This is my code: <div ng-repeat="post in posts"> <span> <a ng-show="(post.like_ids.indexOf(current_auth_f.uid) <= -1)" ng-click="like_f(post.id, ...
0
votes
0answers
11 views

Devise auth with Rails Metal API and existing session?

I'm having trouble finding an answer to this one, but im sure there's a solution. I have a Rails app, with Devise, users login and are directed to the /user/dashboard page which is an Angular based ...
1
vote
1answer
25 views

Rails + AngularJs + Unable to fetch data using Service

In my AngularJs app with Rails server as backend, I am trying to fetch data using GET method but unable to access the data. Not able to recognize the error. AngularCode var app = ...
0
votes
0answers
10 views

Missing assets and templates after generating with Grunt an AngularJS application inside a subdirectory

I am deploying a Yeoman generated AngularJS application into the public directory of a Ruby on Rails application and cannot figure out how to fix an issue regarding missing assets and templates (404 ...
0
votes
1answer
20 views

Restangular POST not passing data parameters

I'm new to using restangular. With that said, I have the below POST call which for some reason is not working as expected. Restangular.all("user").all("login").post({username: '[email protected]', ...
0
votes
0answers
24 views

Update Nested Attributes with Composite Primary Keys Returns Unpermitted Parameters Error with Rails 4.1x

I have an edit form being sent to rails via a JSON feed. This form has two levels of nested attributes, with the last level using a composite primary key. Here's a typical params: Parameters: ...
0
votes
0answers
12 views

Javascript FileReader : Failed to execute 'readAsDataURL' on 'FileReader': The argument is not a Blob

I'm using AngularJs as my front end framework, with rails in the back.Currently what i'm attempting to do is crop the original photo, and re-upload it. Using Rmagick to crop the photo, I send back ...
0
votes
1answer
34 views

How to start up angularjs - rails app

I'm trying to make a angularjs-rails app. this is the flow what i have done. rails new myapp rails g scaffold Post body:string title:string rake db:migrate ok, now the backend for post's CRUD is ...
0
votes
0answers
24 views

Keeping user logged in across page refreshes

I'm using Angular and Rails, and for authentication I'm using the ng-token-auth module with the devise_token_auth gem. For some reason, whenever I refresh the page, Angular "forgets" that the user is ...
0
votes
0answers
9 views

How to add independent attribute to SimpleForm without value?

I'm combining Angular with SimpleForm, and I'm having trouble trying to figure out how to add a novalidate attribute to the <form> tag generated by SimpleForm. Ideally it would be something ...
2
votes
1answer
44 views

AngularJs logged in user permissions

Background I am building an app which displays different content on a page depending on whether a user is logged in or not. (using ng-if) I do not wish to redirect users to separate routes depending ...
0
votes
2answers
20 views

Sign user in upon account creation

I'm using the ng-token-auth module and the devise_token_auth gems. The default behavior seems to be that when a user registers, the user gets sent an email with a confirmation link. I don't want this ...
0
votes
0answers
13 views

how to tilt the labels in morris chart using Angularjs

I'm a beginner to angularJS. Now I am working Morris chart in angular and I want to tilt the labels to -45 degree for my page.here I have attached my sample code. <div morris-chart ...
0
votes
1answer
14 views

Changing a rails datetime to string in Angular controller

I'm learning angular, and have attached one to a rails api. I'm rendering an object's date in my view with angular {{example.date}}. I'm assuming the best place to massage the JSON coming out of my ...
0
votes
0answers
10 views

How to format JSON when performing Angular ngResource save to Ruby on Rails

I have an app I'm building with Angular for the front-end and Rails for the back-end. I have a complex save I'm trying to perform using Angular's ngResource module. How I ultimately want the JSON to ...
1
vote
1answer
15 views

NG Style Failing to automatically bind to page

I'm trying to make a page with two sections, which can be slid back and forth horizontally to take up different relative widths on the page. The idea was to track the percentile width of the (to-be) ...
0
votes
0answers
11 views

angular rails resource subfolder

I have project where my application is in subdirectory. http://example:8888/myapplication/ I use this gem for angular resource[ https://github.com/FineLinePrototyping/angularjs-rails-resource ] ...
0
votes
0answers
14 views

Rails Devise/other contorller create json api for login and registration and other controller action for anguler/mobile application

I want to write a API for login user and then allow user to perform all the function available in the website on the successful login.Please note there would be no session in the application as this ...
0
votes
1answer
23 views

How does our iphone app use the public API?

I've been struggling with this for a while and hope someone can help. We have a Rails API, it's currently private on AWS. There is an Angular App frontend and Iphone App which consume the api. That's ...
0
votes
0answers
16 views

Why can I only create a user in the Rails console but not via a clientside/HTML form? (hashing, attr_accessor: password, AngularJS, clientside, HTML)

My sign up form appears just wrong, the clientside AngularJS validations have just stopped working, and while tweaking I get various errors like: uninitialized constant User::BCrypt, params cannot be ...
1
vote
1answer
19 views

Rails app with parts being SPA (AngularJS) or multiple SPA

we have a classical Rails4 app that we want to take a step further using AngularJS (Ember would do, even Backbone), but the problem is that we don't want a fully Angular SPA using Rails just as the ...
0
votes
2answers
37 views

how to include angularjs library file in rails app

ActionController::RoutingError (No route matches [GET] "/assets/angular.min.js.map"): actionpack (4.1.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.0) ...
0
votes
0answers
24 views

Using AngularJS with Server Side Events in rails using CoffeeScript

Very new to AngularJS and below is my code. Trying to do similar to railscast episode #401 on ActionController::Live but as i am trying this with angularJS, not able to achieve the expected result. ...
1
vote
0answers
24 views

Rails/Angular app works perfectly locally but I'm getting a 500 Server Error on Heroku

I have a nice little rails angular app that is working great locally, but now that I am trying to deploy to heroku, I'm having some problems. Namely, when I try making a POST request (through ajax), I ...
1
vote
0answers
18 views

Failed to read JSON file using $http.get in angular script on Rails and Undefined $scope

Q1: I have the following code: <script> function ProductionIndexCtrl($scope, $http) { $http.get('POD.json').success(function(data) { $scope.results = ...
1
vote
2answers
90 views

Bootstrap UI Angular Accordion and Rails template must have one root element

I'm trying to use the example accordion directive in my rails app but receive the following error and my browser crashes Template for directive 'accordionGroup' must have exactly one root element. ...
0
votes
1answer
18 views

Angularjs communication controllers in different views - Rails

I need a tip how to connect two controllers in different views in Rails. I have items and an Cart in my index, when I click on item in new tab and add item to cart I want to this item be added to cart ...
0
votes
0answers
7 views

Accessing parameters on a rails + angular application

I am working on a rails + angular application, the admin part is full angular, I am achieving that by sending everything on an admin controller and load there the angular part that uses ngRoute. ...
0
votes
0answers
27 views

Using angularjs rails resource query correctly

I am using angularjs-rails-resource and I have set up a service. I have a table of leagues which belongs_to a user so the columns of the league table are id, name, and user_id. I am trying to pull ...
0
votes
1answer
36 views

Angularjs + RubyonRails + Google Maps Error: [$injector:unpr] Unknown provider: tProvider <- t

Iam creating an App with angulajs and rubyon rails.i want to show the google maps to the user for a partiular latituts and longitude i am gettig this kind of error here is my code. Angularjs ...
1
vote
2answers
38 views

How can i attach more than one file with Carrierwave / AngularJs+RoR via Json?

sorry for my english. For now i can create Task with one picture attached to it, i want more... I have Rails on back-end and AngularJS on front-end. I create a directive which helps me send image ...
0
votes
1answer
36 views

Configuring AngularJS Routes on Rails

I'm having a difficult time configuring AngularJS Routes on Rails. I know that this is a basic concept and have read: http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/, but ...
0
votes
0answers
20 views

Can't delete Rails nested attributes via Angular application

I can't find the solution to deleting a child relationship from my Angular APP which is connected to our Rails 4 API. We have a nested form working correctly in Angular - I can create the nested ...
1
vote
0answers
33 views

Angularjs Account-based Authorization check on state changes

I haven't been able to find anything on this yet, so forgive me if this question has already been asked in some other form. I'm using Angular-UI-Router as my preferred routing method with Ruby on ...
0
votes
2answers
43 views

slim with angular - Conflict using {{double curly braces}}

When you use {{}}, slim looks at the first { and thinks it's an attribute. How can you disable { as a key character from slim. so that using {{ }} will be interpreted as angular, not a slim ...
0
votes
0answers
15 views

Posted value is not real instance

I have form with few when I post data getting this error : Category(#49178160) expected, got ActiveSupport::HashWithIndifferentAccess(#24513960) because params[:category] is not instance of ...
0
votes
1answer
33 views

Angularjs not loading with Rails in production

I am trying to deploy a Rails application with Angularjs on Bluemix. I am using AngularJS for the front end MVC. I am trying to put my application into production and Angularjs is not working. The ...
1
vote
0answers
27 views

incomplete “\n” on UTF-16LE Error

I have been trying to follow several tutorials on rails and each time I am hitting the following issue at the time of running rails s: Started GET "/" for 127.0.0.1 at 2014-09-14 06:57:44 +0100 ...
0
votes
1answer
23 views

Using PrivatePub with Angular JS

I'm trying to use PrivatePub within my Angular app. I've a chat and messages are managed by AngularJS, my API behind is running with Rails, in my controller I use the helper to Publish to the channel, ...
0
votes
1answer
36 views

angularjs + rails is not working in production

I'm getting the following error and I cannot understand why. I tried my best to change/check the origin of the error, but for me everything seems to be correct. And the wired this is , this error ...
0
votes
1answer
30 views

UIBootstrap breaking angularjs post request

I have the following in an angular partial <h1>{{tournament.name}}</h1> <accordion close-others="true"> <accordion-group> <accordion-heading> ...
0
votes
0answers
14 views

How to configure Angular $resources to work with Rails and Mongoid

I don't what I'm doing wrong here. I've created the REST on Rails which works fine when I use $http like so: $http.put('/customers/' + customer._id.$oid, customer) .error(function (data) { ...
0
votes
0answers
25 views

Unit testing for basic CRUD actions in AngularJS

I am new to AngularJS and good experience in Rails. I am developing an application with Rails and Angular. Now I struck with angular JS testing. I am using Jasmine to do using testing. Here is my ...
0
votes
0answers
21 views

Upgrade angularjs-rails from 1.0.8 to 1.2.22 and now a filter just render the results once

I upgraded my app from angularjs-rails from 1.0.8 to 1.2.22 and now a filter in a ng-repeat just render the results once. Other list just work once also. The second time I tried to search go to the ...
0
votes
0answers
43 views

Refused to execute script from url because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled

I am working on a project in angular and using restangular for consuming restfull API on backend i have this code in R & R def show # Dummy API response @response_hash = {id: ...
0
votes
0answers
24 views

Wordpress homepage + Angular app + Rails API - deploy to Elastic Beanstalk and EC2

My current setup has three components: Rails API Angular app (which needs to be located at www.example.com/calculator, and it's hitting the Rails API) Wordpress site (which will be at ...
0
votes
1answer
37 views

Angularjs Rails Resource save() function not working from controller

I am using angularjs-rails-resource , in my Rails Angular App. Account Resources myApp.factory('Account', ['railsResourceFactory','railsSerializer', function ...
0
votes
2answers
44 views

Inject Angular into Rails

There're a lot of articles on this topic, but in my mind the easiest way to start with are railscast angular and this one ...
0
votes
1answer
18 views

Is there a good Rails plugin to expose a query interface to Angular?

Angular.js allows me to query a server resource cleanly from the client and pass up parameters which I'd like restrict how I query the server resource. However in order to actually process those ...