[Rails] Re: Local Storage

2014-11-25 Thread Praveen BK
Hello, I have to store nested hashmap on client side, which is the best way to store nested hashmap on client side. Values inside activerecord change in client side. When submit button is pressed, hashmap has to be sent to server through ajax. regards, Praveen -- Posted via http://www.ruby-f

[Rails] Re: Local Storage

2014-11-24 Thread Praveen BK
I am trying find the best solution in this case, even json object looks similar to javascript hash tables you have mentioned. I am refering to json object as rails renders json object. json can be passed as data field in ajax. -- Posted via http://www.ruby-forum.com/. -- You received this mess

[Rails] Re: Local Storage

2014-11-24 Thread Praveen BK
Hello vivek, I need to store a variables (nested hashmap) on client side and data in hashmap changes very frequently. When user clicks submit button, data has to be pushed to server. regards, praveen -- Posted via http://www.ruby-forum.com/. -- You received this message because you are s

[Rails] Local Storage

2014-11-24 Thread Praveen BK
Hello all, I am trying to build a web application, where most of the data is to be stored on client side because data changes very often. Only when user presses submit data, data stored on client side should be pushed to server. How to store data on client side? How to retrieve data from

[Rails] ActiveRecord::Base

2014-07-14 Thread Praveen BK
Hello all, What is significance of :: in ActiveRecord::Base. What is difference between ::String.new and String.new Thank you, Praveen -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. T

[Rails] Difference between Cookies and Sessions

2014-07-07 Thread Praveen BK
Hello, Can anybody please define cookies and sessions and their differences in detail with reference to rails. Thank you, Praveen -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsub

[Rails] How to convert time from one timezone to another

2014-04-03 Thread Praveen BK
Hello, How to convert utc time to a time in a particular time zone. As I need to display local time of timezone(-05:00). Thank you, Praveen -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou

[Rails] Set timezone for an rails 3.2 app

2014-04-03 Thread Praveen BK
Hello, How can I configure a rails application time to a particular timezone and display all times with respect to the configured timezone. Thank you, Praveen -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Dependency drop down list

2014-03-04 Thread Praveen BK
Hello, I am trying load a drop down list based on selection from first drop down list. Based on first drop down list selection, I am able to fetch data for second drop down list but I am not able to refresh second dropdown list contents. How Can I refresh second drop list on selection of fir

[Rails] Refresh a div without reloading the page

2013-06-10 Thread Praveen BK
How can I refresh a particular div or a partial using onChange of a dropdown menu without reloading the page? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and s

[Rails] Re: Conrollers in rails (C in MVC)

2013-05-14 Thread Praveen BK
Thank you so much Robert Walker. You have given me a lot of insight regarding Controller in MVC. I Thank you again for your time and guidance. Regards, Praveen -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Conrollers in rails (C in MVC)

2013-05-14 Thread Praveen BK
When should I create a new controller in a rails application? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Re: Refresh a partial onClick using ajax call in rails 3.x

2013-03-06 Thread Praveen BK
Thank you for your guidance but i am stuck here i am unable to use getScript properly After executing my code In views home.html.erb: $(document).ready( function() { $(".inline").click(function() { currentCellText = $(this).text(); $('.dynamic').load('/te

[Rails] Refresh a partial onClick using ajax call in rails 3.x

2013-03-05 Thread Praveen BK
Hi All, I want to refresh a partial onClick, onClick i am making ajax call and getting the data but i am unable to refresh the partial. here is the code IN views: home.html.erb $(document).ready(function() { var currentCellText; $(".inline").click(function() { currentCellText = $(this).text(

[Rails] SECURITY WARNING: No secret option provided to Rack::Session::Cookie.

2013-02-04 Thread Praveen BK
I am getting following warning while generating model, how to get rid of this warning and what is cause for this warning. I am using rails 3.2.8 SECURITY WARNING: No secret option provided to Rack::Session::Cookie. This poses a security threat. It is strongly recommended that you provide

[Rails] Re: Accessing non-instance variables in view

2012-12-18 Thread Praveen BK
Ya, thank you,adding @ to variable made it available in the view. here, I m making HTTP request using ajax, which goes to my controller and executes a method, Now I m getting return value in view. But I have to display it in popup menu. the code for the pop up is $.colorbox({html:"<%= @x %>",

[Rails] Re: Accessing non-instance variables in view

2012-12-17 Thread Praveen BK
Adding @ to a variable doesn make the variable instance variable, its convention that are followed while writing a ruby program, I think... Here I have a variable x = 10, in my controller how can i access it in view without using cookies. -- Posted via http://www.ruby-forum.com/. -- You receiv

[Rails] Re: Accessing non-instance variables in view

2012-12-17 Thread Praveen BK
Adding @ to a variable doesn make the variable instance variable, its convention that are followed while writing a ruby program, I think... Here I have a variable x = 10, in my controller how can i access it in view without using cookies. -- Posted via http://www.ruby-forum.com/. -- You rece

[Rails] Aceesing non-instance variables in view

2012-12-17 Thread Praveen BK
Hi, I want pass a variable(which is not a instance variable) from controller to view in rails application, onclick I am going to controller and fetching data with ajax. Since the page is not reloaded I cant set the variable in cookies. So is there any way to pass a variable(which is not an instance