0
votes
1answer
20 views

Rails association: Invalid type of save method in create action

I want use rails for server and post data by http and post method and then save data to database. For this, I have 2 models and controllers: bolouk and 'radif'. I have below association: ...
0
votes
0answers
6 views

angular/rails: open a new window, execute a post and when finished return to main window

I'd like to use angular for our project. Caveat: login should work with OpenID. As far as I understand, the OpenID redirection workflow would normally result in a page refresh, so I conclude this ...
0
votes
1answer
21 views

Rails+AngularJS returning weird error on $resource call

I'm working on integrating AngularJS with Rails and I'm getting some errors that's driving me nuts. I have a AngularJS factory and a controller that's making a call to the index method of a Rails ...
2
votes
1answer
37 views

How to implement “Keep me logged in” functionality in AngularJS

I am working on AngularJs application and back end is developed in Ruby on Rails. We have not used Devise gem for User authentication. Whole user authentication process is written in AngularJs. Now I ...
0
votes
1answer
22 views

Uncaught Error: [$injector:unpr] Unknown provider: eProvider <- e while deploying to heroku

I'm encountering this error: Uncaught Error: [$injector:unpr] Unknown provider: eProvider <- e after a successful deployment to Heroku I'm using angular social share btw: ...
0
votes
0answers
23 views

How to Format to_json output to go well with update_attributes

I am working on Angular JS + Rails project . I am passing below JSON to angularJS which was created by rails to_json user_controller.rb render :json => current_user.to_json(:include => ...
0
votes
1answer
11 views

How to put angularjs attributes in rails erb

I have a rails form that looks like this: <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> <%= devise_error_messages! ...
0
votes
2answers
55 views

Angularjs: use “.then” and get response

I want send a http request and get response of this request. I want if data is save, I get database information and if doesn't save, I get errors. For this, I want use .then in angularjs. I create ...
0
votes
0answers
25 views

Completed 500 Internal Server Error in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms)

I want create new method by post data to rails server and create action to save data to database. I post data correctly and data save to database correct. But at end I get 500 internal error. I show ...
-1
votes
0answers
34 views

Angularjs: Cannot recieve response of create method

I want create new object in database by post method to rails server from angularjs code and then if object is save, recieve data of database(like id and other field) and if not save, get errors. For ...
0
votes
1answer
24 views

Angularjs: post data to rails server by service

I want send data from angularjs to rails server. For this, I have an angularjs service that I use GET,POST,DELETE,UPDATE method. I can use GET method, but for other method I cannot use, beacause I ...
0
votes
1answer
18 views

Send 2 json from server to angularjs controller by 1 request

In a rails project, I have 1 controller and 2 model. I want send 1 request from angularjs to rails server and for response, get 2 json array, 1. first model. 2. seccond model. Now I use below code, ...
1
vote
0answers
32 views

desktop web page not displaying properly with meta name = viewport

I'm very puzzled, as I tried every possible tag combination to work. Unfortunately, nothing works. My tech stack is AngularJS/Ruby on Rails, and im placing the meta tag in a rails html file that is ...
0
votes
1answer
27 views

Rails is not using my parameters to send data back

I have an angular app running on rails and im trying to get data from my rails backend with parameters and it always just returns all votes. I think my problem is on my backend. It is always calling ...
0
votes
1answer
33 views

How to make AngularJS check and use data on the Rails backend?

Like say I wanted to make sure someone signing up did not use a pre-existing email address. How to make the AngularJS file interact with the Rails user model/users database to see that? Is NodeJS ...
0
votes
1answer
11 views

Overwriting image on amazon s3. In mobile overwritten image still shows. However in desktop, new (correct) image shows. why? caching issue?

I have a simple app that requires a profile. The first page creates your profile and the second page allows you to upload an image. When the first page is creating your profile, it uploads to amazon ...
-2
votes
0answers
18 views

How to add custom rails method to angular js?

I have a problem. I am trying to invoke Rails controller method in Angular JS. This is PUT method, and I really don't know how I can do this. Is it really needed to use the API to invoke that? My ...
0
votes
1answer
27 views

CORS in rails-api and angularJs

I've been trying out all kinds of solutions from the countless other questions on this topic, without any luck... I'm trying to setup a rails-api project, with a front-end in AngularJs. They will be ...
0
votes
1answer
50 views

How to add search term to Spotify API

I am building an app using rails, angular, and RSpotify. I'm still kind of a newbie, and feel like the answer to my question is right in front of me, but I am struggling to figure it out. After I ...
0
votes
0answers
9 views

use Rails date_select with Angular

How do you use Rails date_select form helper and generate a seperate ng-model for month and for year? // Slim = f.date_select :from, { order: [:month, :year], start_year: ...
0
votes
1answer
27 views

angularJS + rails 4 / PUT METHOD

my POST method works well. but my method PUT does not work. I can not find my error.. I have OPTION in the browser... f {$promise: Object, $resolved: false, $get: function, $save: function, $query: ...
0
votes
1answer
56 views

automatically redirect page in angularjs

In a angularjs project, I want when user doesn't sign in, page is automatically redirect to login page. For this, I when user want see a page, if doesn't sign in before, I send 401 from rails sever by ...
0
votes
1answer
23 views

ember run loop screws computed property assertions up or is it

In the route, I wait for a promise and set the controller property. I do this in renderTemplate hook method. File: play_route.js App.PlayRoute = Ember.Route.extend({ renderTemplate: function() { ...
0
votes
0answers
27 views

How to setup multiple apps with yeoman angular and rails

I am building an app with rails-api as backend and angularjs as frontend. I came across yeoman angular for scaffolding. Now in my angularjs, i need separate layout for frontend and admin. So I thought ...
1
vote
0answers
86 views

Rails Wiselinks & Angular : How can I make the angular code load after the page loads?

When I use the data-push the Angular code shows up as this {{user.name }} How can I make the page request so the Angular code gets triggered ? Turbolinks is a bad mix with Angular and jQuery on Rails, ...
1
vote
0answers
45 views

Is this concept of Oauth2 workflow for sinatra + angular.js + custom provider correct?

I want to build three example apps. One will be a sinatra oauth2 provider and second will be rails app with angular.js on frontend and rails on backend and third with sinatra on backend and angular.js ...
0
votes
0answers
42 views

angularjs sending cross origin POST to a Ruby on Rails create method

None of the other questions about this seemed to give a descriptive question and/or receive a thorough answer. Scenario Use angular to send cross-origin JSON post data to rails create method. Code ...
0
votes
1answer
47 views

Using Restangular and trying to set multiple parameters to a var from $scope

I am learning Angularjs and using Restangular to connect to Rails server API. I seem to be lacking a basic understanding of how to assign parameters from a form to a var that I will use in my function ...
0
votes
3answers
14 views

Heroku rails angular js compiling assets

I got problem deploying my js file to heroku. Problem started when I added component for my angular module like this var keysApp = angular.module('keys',['mgo-angular-wizard']); So the code in ...
0
votes
0answers
19 views

Rails respond_to that services both html and json on page refresh

I have a Rails application that is using angular and json to display all the data in the front-end. Something like this: show.html <div ng-controller="fooCtrl">{{foo}}</div> ...
0
votes
0answers
14 views

init value with ng-model/ng-init in simple_form collection select

I've got simple_form_for @tag in #edit action and one of the field is <%= f.input :color, collection: %(red green blue), input_html: {ng_model: 'colorBoxValue'} %>. Unfortunately after form ...
0
votes
0answers
23 views

Getting “Error: Grid argument is not a Grid object” error in Angular ui.grid (ng-grid) after minification

I am getting Error: Grid argument is not a Grid object only in prod (its working in dev), after javascript minification. I delved into the ui.grid's code, and my initial thought is that there is a ...
0
votes
1answer
22 views

After upgrade to Angular 1.2 problems linking to an anchor tag

I recently upgraded to angular 1.2 and any links to anchor tags are now being converted from: http://homepath.com#my_anchor to http://homepath.com/my_anchor Any suggestions on preventing that? ...
1
vote
3answers
120 views

How to make links inside ng-repeat indexable by SEO?

I have code like this in the root page (e.g. http://www.example.com): <div ng-repeat="url in urls"> <a ng-href="{{url}}"/>url</a> </div> Each url is just a ...
0
votes
0answers
33 views

Inconsistent errors with Rspec, Capybara and phantom.js

I have a pretty basic test that sometimes works, and sometimes fails with inconsistent error messages such as: Failure/Error: Unable to find matching line from backtrace ...
0
votes
1answer
26 views

Rails CSRF token issue in Angular routes

I am using AngularJS routes with rails. For authencation I am using using Angular Devise directive. I am facing some issue with CSRF token. User Controller function ...
0
votes
0answers
40 views

Css, Angular, and Javascript not working on Heroku

I finished up a project of mine (blog), and uploaded it to heroku. Everything works fantastically on my local setup, and I wanted to see if it looked good on heroku. The site is jmnewman.herokuapp.com ...
0
votes
1answer
34 views

how to pass data from angular to rails [closed]

I'am very new to angular, only a week old. My question is how do i pass data from angular to rails? As you can see i only need to save whatever is been input it in {{entry.name}} into rails. Thank you ...
-1
votes
1answer
25 views

use $httpProvider.responseInterceptors in rails application

I want use $httpProvider.responseInterceptors in a rails application, but when I add this to project, I get below error in chrome console and project isn't run. Uncaught Error: [$injector:nomod] ...
0
votes
2answers
32 views

Argument 'Controller' is not defined

I am making a little rails/angular project where I am trying to return a list of data from Instagram. Rails is just acting to serve files, and then will be deployed to heroku. The rest of the app is ...
0
votes
1answer
31 views

Angular+rails deployed on Heroku… curly brackets display, doesn't actually pull data

I deployed an application to Heroku that uses Angular.JS on rails. It works when I open it locally, but on Heroku, the {{}} brackets dont pull data, instead it just displays as {{}} (e.g. ...
1
vote
0answers
34 views

NoMethodError (undefined method `build' for #<Class:0x00000006371f30>)

I use angularjs and InheritedResources gem in my new rails project. I want use association in this project. I find Singletons for association with InheritedResources. I create 2 model and complete ...
0
votes
0answers
27 views

ngResource resourceProvider error with rails

Folowing the angular railscasts tutorial I have a rails app with angularjs-rails, both angular.js and angular-resource.js are being included in the head of my html file. my welcome#index.html.erb ...
1
vote
1answer
33 views

ActionController::RoutingError (No route matches [POST] “/forums/comments”)

I use inherited_resources 1.5.0 gem and angularjs in my new rails project. I have 2 model: forum and comment. I create all form with angularjs and get data from user and post to rails server to create ...
0
votes
0answers
17 views

Image not rendered if the image name does not end in “-coffee”

This is an angular project generated using yeoman with this command "yo angular --coffee". We use ruby-on-rails mainly as an api server. I just noticed this morning that if I add images to ...
0
votes
1answer
20 views

Rails Nested Resource Not Displaying Correct Index

So I have two models in Rails. However, when I visit the path /lectures/:id/users.json I do not get the users associated withe the particular lecture. I get ALL the users. I'm not sure what I'm doing ...
0
votes
0answers
19 views

Load rails model data to front end on background job event

my web application is using AngularJS and Ruby on Rails. Currently, there are some background tasks that the end user triggers that get processed by delayed_job. The background task produces ...
1
vote
0answers
30 views

Save paperclip attachment to DB via AngularJS in Rails 4

I'm trying to save a photo into DB via AngularJS in Rails4. I used paperclip gem for the attachment setup class User < ActiveRecord::Base devise :database_authenticatable, :registerable, ...
1
vote
1answer
57 views

AngularJS is not sending-X_XSRF-TOKEN

I am developing an Ionic mobile app to talk to my backend Rails server using a JSON API. I have read that AngularJS will automatically handle XSRF protection by sending a header X-XSRF-TOKEN on the ...
0
votes
0answers
30 views

angular and rails form not submitting

I am working a rails app using angular. I have a form inside a main form. the only job that the angular form have is get the text from the input and place in another class. My problem is that the main ...