Tagged Questions
0
votes
1answer
21 views
Cookies vs Service for storing cart_id. Which is better Practice?
Software Stack:
AngularJS
Rails
Option A:
When a user GETS "/", the server creates a cart in the db and writes the id to a cookie. Angular reads the id from the cookie and uses it in the cart ...
0
votes
0answers
28 views
Table pagination with AngularJS and Rails
I have a Rails application which uses AngularJS for displaying and asynchronously updating a list of objects (configured as AngularJS resources). Is there a simple way to server-side paginate this ...
2
votes
0answers
81 views
#! causing routing issues using Angular/Rails with multiple layouts
I'm developing an AngularJS application with a RoR backend and ran into an issue when using multiple layouts. The application uses one layout when rendering pages to an unauthenticated user, and ...
0
votes
0answers
32 views
Google OAuth2 Devise Sign-in with AngularJS
Like this question, we are using the Google javascript API to call OAuth2 ....
Next we need to sign the user in to the Rails server. Since we use Devise, I'm assume we need to call Devise, but I'm ...
0
votes
1answer
37 views
Access Devise user from AngularJS?
I have a Rails application which uses AngularJS on the front-end. I also have a route in the format "/api/:user_id/submissions/:id" to access specific submissions from a user. On the front-end I'd ...
0
votes
0answers
47 views
testing angular js/jasny-bootstrap based upload button with hidden fields through capybara
I am attempting to test a jasny-bootstrap / ng-upload based upload button. Unfortunately the elements are masked, so Capybara 2.0 fails to click the right elements.
I attempted to fix this using the ...
0
votes
0answers
40 views
Why is rails compiling a javascript which is already minified?
Why is rails compiling a javascript which is already minified?
Compiled libs/angular-core/angular.min.js (2731ms) (pid 19999)
Compiled libs/angular-core/angular-cookies.min.js (580ms) (pid ...
0
votes
1answer
63 views
Error: Unknown provider: tProvider <- t angularJS in rails
I have a problem with angularjs. When the javascripts are minified I got this error "Error: Unknown provider: tProvider <- t" but when I disable minify my web app works. I know ...
0
votes
1answer
45 views
Access Devise :user_id from Angular?
In my Rails app I'm using AngularJS and would like to display all submissions to the site that are associated to the :current_user; I use Devise.
Here is my factory:
var brainDB = ...
0
votes
1answer
74 views
How to pass Rails current_user to AngularJS factory API call?
In my Rails app I have users, and these can create posts that are associated to their account. I have a route, "/api/:user_id/submissions/:id(.:format)" => "submissions#usersubmission" which ...
0
votes
0answers
52 views
Implement angularjs official example to rails app
I'm a newbie to augular.js. As the title, I want to implement the official example to rails app.
Here is the official jsfiddle which I want to implement: http://jsfiddle.net/garylai1990/7EKxK/
I ...
0
votes
1answer
23 views
No response available from custom Devise rails auth api, but my RABL api works fine
I'm using Restangular in AngularJS to connect to my RAILS API backend. I can grab data no problem using Restangular from my standard RABL api service, but when I try to POST to my custom Devise ...
2
votes
1answer
23 views
Rails templates and AngularJS databind combine
How can I use rails templating <%= %> with angularjs data binding {{}}. Example <%= {{ dataConfess.confess }} %> . I know this is an error. What is the right way to do this?
0
votes
0answers
21 views
Building a slideshow of images,pdfs,videos for my rails app [closed]
I am trying to make a slideshow of images, pdfs and videos for my rails app
Would using AngularJs be the way to do this?
If so, how would i go about doing this?
If not, what should i use and how ...
0
votes
1answer
45 views
Redcarpet gem with Angularjs in rails application
I'm using Redcarpet gem to render markdown.
This is my posts_helper.rb file:
module PostsHelper
def markdown
options = [:autolink => true, :space_after_headers => true, :hard_wrap ...