[Rails] How to add add sorting to html table fields

2016-07-15 Thread Lekha P.
Hi Please help to find how to add sorting to all fields in html table , backend is mongoid and also iam using kaminari gem for pagination. -- 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

[Rails] Re: How to get similar elements from a array in Ruby.

2015-02-02 Thread lekha p.
Yes, it is actually like below. yeh it has a one in the string. eg : [['1','2'],['11','2'],['23','89']] -- 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

[Rails] How to get similar elements from a array in Ruby.

2015-02-02 Thread lekha p.
Hi all, How to get similar elements from a array in Ruby. eg : [[1,2],[11,2],[23,89]] when i give input 1 i should get all arrays like [[1,2],[11,2]] Thanks in advance.. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: How to get similar elements from a array in Ruby.

2015-02-02 Thread lekha p.
Yeh im looking for that, some method which gives element for my string matching, :) -- 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

[Rails] Please help me out

2014-12-23 Thread lekha p.
Hi, I have a User Model which includes attributes Street, City. I want to get array of Streets of users, when street is blank or nil i want to pick up city of user. By searching i got to know i can get array of streets using User.pluck(:street), what is the query to find city of user when street

[Rails] JS response -pls help somebody

2013-12-12 Thread lekha p.
Hi all, Pls help to find a solution : i have a form like following %= form_for @product , :url = products_url(:format = 'js'), :html ={:id=create_product_form ,:multipart = true,:remote=true} do |f| % what i have to do is like when submiting form i have to redirect to new page else want to

[Rails] Re: Controller function - Length

2013-12-04 Thread lekha p.
Hi all, Thank you. -- 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] Controller function - Length

2013-12-01 Thread lekha p.
Hi all, what you used to do when your controller function gets lengthy sometimes ? a way i found is just split the function. What is the real and Rails way to keep my code cleaner and maintainable. Thanks, Lekha. -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] Two fields in model but only need to store last field selected by user

2013-10-04 Thread lekha p.
Hi, Please help me I have two fields in a form, One field stores photo, am using paperclip and another field stores link of picture from web. My problem is i have to store only one value of any field which user selects at last. Pls help me to do this. -- Posted via http://www.ruby-forum.com/.

[Rails] REST IN RUBY ON RAILS

2013-07-15 Thread lekha p.
Hello Friends, Can anybody explain me, What is Rest mean in RUBY ON RAILS... -- 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,

[Rails] Re: REST IN RUBY ON RAILS

2013-07-15 Thread lekha p.
Dheeraj Kumar wrote in post #1115456: It means the same thing in all web frameworks. http://en.wikipedia.org/wiki/Representational_state_transfer -- Dheeraj Kumar ok thanks, can you please tell me, how it is implemented in ruby on rails. actions index,edit,new,update etc comes as part of

[Rails] Re: Re: REST IN RUBY ON RAILS

2013-07-15 Thread lekha p.
ok could please help me to know how it is implemented in rails, like telling a example. -- 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

[Rails] Re: Re: Re: REST IN RUBY ON RAILS

2013-07-15 Thread lekha p.
yes i created a application.. so where it comes? -- 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: Re: Re: Re: REST IN RUBY ON RAILS

2013-07-15 Thread lekha p.
yes i did.. -- 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 rubyonrails-talk+unsubscr...@googlegroups.com. To

[Rails] How to use Json

2013-04-22 Thread lekha p.
Please Help, Hi can anybody show me some simple code which shows how using json in Rails application. Thanks, Lekha -- 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

[Rails] Future of Rails technologies

2013-03-15 Thread lekha p.
Hi all can you tell me about future of ruby on rails Technolgy Regards Lekha Pillai -- 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