2
votes
0answers
67 views

Textarea resizes and triggers best_in_place blur event

I'm using the best_in_place gem on several textareas and sometimes (seemingly randomly) the textarea 'jumps' and triggers the blur event when I click save, prompting the "discard your changes" ...
2
votes
0answers
187 views

Images don't resolve correctly using Rails asset pipeline in development mode

TL;DR asset_data_uri works but asset_path does not. I recently switched from a homegrown + jammit asset pipeline over to the Rails asset pipeline in hopes that I could ditch a bunch of code and have ...
2
votes
0answers
144 views

How to create a 12 hour (with AM/PM) time select element?

I am using rails 3.2.13. I want to show 12 hours of clock and am/pm also in dropdown. Seems lot of people talking about this but there is no inbuilt solution for the same. time_select("post", ...
2
votes
0answers
71 views

How to use update_elements with rails3-jquery-autocomplete?

I'm using rails3-jquery-autocomplete (Rails 3.2.10), and I think I may have two issues which may or may not be interacting. I have a "name" field (containing a given name) in a table 'pi'. I want ...
2
votes
0answers
103 views

Rails 3.2.x double request in ajax and non-ajax forms

When I start my app in production environment all my forms make a double request to the server even if they don't have the :remote => true. Until know everything I have found about this matter is ...
2
votes
0answers
41 views

Trouble loading the JSON extended parser after Rails 3.1 -> 3.2 upgrade

I'm upgrading a Rails app from 3.1.10 to 3.2.11. I'm using version 1.7.6 of the json gem. At the top of my app controller I had been requiring the library like this: require 'json/ext', enforcing the ...
2
votes
0answers
132 views

Rails 3: How to restrict access to the web interface for adding oauth authorized applications using Doorkeeper gem

I have a Rails Application Which uses Device + doorkeeper.I am also using cancan for Role Management.In my application i uses http://localhost:3000/oauth/applications/new for registering my ...
2
votes
0answers
97 views

How to pass the session variables from one rails 3.2.8 engine to another engine?

In our rails 3.2.8 app, there is an mountable engine authentify which handles the authentication of users and generates sessions variable for whole app. When we are integrating authentify with another ...
2
votes
0answers
106 views

Using the lib folder for application parts in rails

there are some problems with Ruby on Rails I couldn't solve even spending hours and hours trying. I hope you guys can help me. The four questions are marked with Q1-Q4 at beginning of line. I have an ...
2
votes
0answers
129 views

Fixed - Rails model: saving works locally but not on Heroku

I have a Rails model for a Recipe. It has an attribute, views, which counts how many times it has been viewed. In the show action of my controller, I fetch the model object normally: @recipe = ...
2
votes
0answers
305 views

In Rails 3, how to redirect straight from the routes while setting cookies

I've just come across a situation in the app I'm working in, in which I wrote an action specifically for setting the language cookie and redirect to the last url. Something like this: def language ...
2
votes
0answers
105 views

nested_form reorder

I have a form with dynamic fields (has_many associated model) which can be added/removed with the help of nested_form gem (Thank you, Ryan Bates!). Now, I'd like to give user a possibility to reorder ...
1
vote
0answers
19 views

Rails 3.2 - collection_select Adding A Null Entry In The First Position Of My Array

I have a Ruby on Rails 3.2.13 application where I have a collection_select statement. The collection_select statement is in a fields_for statement where I gather selected ids from the ...
1
vote
0answers
41 views

Confused about passing parameters from JavaScript Ajax call back to controller to render a form

Scenario: I click on some objects,table rows,etc on my page and I get their IDs for example I click on Providers list and get provider_id. And then I click on a button on the page: Now I have a ...
1
vote
0answers
16 views

How can i define my error pages in CMS?

I have rails 3.2.6 and BrowserCMS my application Error pages(404, 500) in public folder, but i need to define my Page Not Found, Access denied, Internal server error page in BrowserCMS. # Exception ...

1 2 3 4 5 51
15 30 50 per page