0
votes
0answers
8 views

Load + display notification records on-click via javascript - Rails 3

I have notifications (aka activities) set up using the public_activity gem. I would like them to be available on every page as in Facebook and SO. I had the query which fetched activities in the ...
0
votes
0answers
16 views

Route to page /:permalink from root rails

I have a PagesController in rails and each page has a permalink, which can't change... I'd like to route to that from "/", i.e "/contact" instead of "/pages/contact". (It's not an option to use get ...
0
votes
1answer
25 views

Rails - undefined method `api_key' for nil:NilClass

Im trying to store my api key in a yaml file fresh_desk.yml production: :api_key: 12345 staging: :api_key: 12345 development: :api_key: my api key here then in my lib folder i have a file ...
0
votes
1answer
27 views

Postgresql error after installation

I already have a rails project then i installed Postgresql and pgadmin III , I need to use posgresql in development instead of sqlite and production to use heroku , I followed the answer number two in ...
1
vote
1answer
15 views

When building a json api for a model with a belongs_to association, the whitelisted attributes of that association are ignored

I'm building a json api for my model, User and a User belongs_to :role. Even though I have already build a json api for Role and whitelisted the attributes I wanted to include, the whitelisted ...
0
votes
1answer
13 views

Rails Active Admin Coffescript not compiling in production

Rails 3.2 I have a coffee script file which works fine in development. When I push to prod I get this error when I go to the login page: ActionView::Template::Error (utils.js.coffee isn't ...
0
votes
1answer
19 views

Rails 3: orphan “Edit” and “Delete” links in the view

This is a primitive to-do list app with tasks belonging to projects. In the View I'm showing tasks beneath the related project with the links to edit and delete each one. <% @projects.each do ...
0
votes
0answers
17 views

Ruby/Rails: Convert from one timezone to another (not necessarily UTC)

I know there a lot of questions along the lines of "how to convert from local to utc", but i think i want something slightly different. Apologies if i am repeating another question (i did search). I ...
0
votes
1answer
34 views

Ruby on Rails decimals?

I have a Migration in my database that has a t.decimal type called decnum. I have tried doing things like mdl.decnum = 3.3, and mdl.save, but it just saves decnum as 3, instead of the decimal defined. ...
0
votes
0answers
7 views

Documentation for creating custom Sprockets processors?

I'm trying to create a sprockets preprocessor for Rails that finds .png.rb files in the asset pipeline and uses them to generate png screenshots of various pages in my application. I've read up on ...
1
vote
0answers
28 views

not getting a matching route, when route exists in rake routes (friendly_id gem)

I have a model relationship where I have a Collection, that has_many Styles my collection styles route works: /collections/1/styles/1 However, direct to the style does not work: styles/1 In ...
1
vote
3answers
31 views

Where in my Rails app is the Bootstrap CSS?

Learning rails... so I use the bootstrap-sass gem... Where are the actual bootstrap CSS files? Seems like there is some sort of magic going on to include them. What if I want to tweak a property of ...
0
votes
1answer
9 views

Rails: error in setup google-api-client

in Rails (rails 4.0.0 rc2, ruby 1.9.3p429), in the Gemfile i've the following line: gem 'google-api-client', :require => 'google/api_client' and then bundle install. In a controller: ...
0
votes
1answer
15 views

Capistrano -failed sh-c error

I am writing one capistrano script to deploy a PHP application here is my basic script set :default_stage, "staging" ssh_options[:forward_agent] = true server "capistrano.myserver.com", :app, :web, ...
0
votes
0answers
54 views

Heroku App down - Can anyone see what's wrong in this log?

Struggling to see what's wrong here. Can anyone help? 2013-08-08T11:26:32.858430+00:00 app[web.4]: ...

1 2 3 4 5 1762
15 30 50 per page