Tagged Questions
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
29 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
18 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
35 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
18 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
11 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
9 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
8 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
12 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
17 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
31 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
21 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
22 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
81 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
17 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
25 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
28 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
36 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
33 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
29 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
37 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
32 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
25 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
22 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
31 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
28 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
24 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
28 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
29 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 ...
0
votes
1answer
46 views
Ruby on Rails, Angularjs: Session getting reset
I am changing the value in session in an api controller, but it doesn't reflect next time the value of that variable in session is fetched. Here is the api-controller...
module Api
module V0
...
0
votes
0answers
23 views
How to route AngularJS from Rails
I want to use Rails as an api, with angular in it's own root directory in the rails app. I used Yeoman to build my angular scaffolding, and everything works fine. However, I want to serve some of my ...
-1
votes
0answers
25 views
How to Implement this simple_form gem using Angular JS with Rails
Here is are the model definitions:
class BillingLog < ActiveRecord::Base
has_many :billable_totals
accepts_nested_attributes_for :billable_totals, :reject_if => :all_blank, :allow_destroy ...
0
votes
0answers
32 views
Angular JS Multiple Inputs in Form
Would there be any reason that multiple inputs aren't being passed from an Angular form to the controller. Either one of the inputs will submit. The problem is both of them won't submit in the same ...
0
votes
2answers
26 views
if @model.save is always true(by valid data and save to database or invalid data and doesn't save to database)
I want use angularjs in a rails application. For this, I post data from angularjs to rails server and then I want if server doesn't save data to database, I send errors from rails server to angularjs ...
0
votes
1answer
22 views
Saving responses of questions individually or batch wise
I am working towards an idea of a Q & A site . Looking to implement the question part of the application using ember or angular so that the user doesn't reloads the page on next question . I have ...
0
votes
0answers
38 views
How to pass variables between controllers [rails+angular+charts.js]
I wish to display charts in my view that take in the JSON from my own API. I am using charts.js for the visualization, ruby on rails as the backbone and angularJS to consume my own API.
For some ...