[Rails] calculating values after rendering page in rails

2016-03-20 Thread Poombavai Sivamani
Hi all.. I am trying to generate a report which has multiple columns.. After rendering the report I allow the user to enter a value which is to be subtracted from the column which is already rendered.. I have multiple rows.. so I have tries like the following. My views page is function sum() {

[Rails] Re: Limiting number of pages in links using will_paginate

2016-03-20 Thread Poombavai Sivamani
Walter Davis wrote in post #1182304: >> :inner_window and outer_window properties doesnot showing me any changes >> 5).order("issue_slip_no DESC") >> .. >> How should I correct it? > > I think you may have the wrong method in your controller. It appears as > though the method you should call there

[Rails] elasticsearch basic usage with has_many model relationships

2016-03-20 Thread fugee ohu
The docs for elasticsearch on github show me basic usage like @users = User.search(@query).records but actually users has_many other models and i want my searches to match any fields from any of the child models, how would i write such searces? ~ thanks -- You received this message because y

[Rails] adding a script to to a rails application

2016-03-20 Thread Jose Blanco
I would like for this to be included in the head section of my rails app:

[Rails] Re: How to make the Cart functionality to work in Rails

2016-03-20 Thread Elton Santos
Can you post in github? I need learn too. Thanks! -- 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 post t

[Rails] Generated objects in the view are stacking incorrectly?

2016-03-20 Thread David Williams
The top item generated is perfectly positioned, but the second and third items directly beneath with no padding in-between. Does ruby on rails automatically override css styling when new items are added to the erb view? Am I forced to use JS library like isotope or masonry? Thank you. Attachments

[Rails] Re: remote:true with redirect. Does it make sence?

2016-03-20 Thread jim
You got it! Yup, it's on you, but it's surprisingly simple since you're only working on the response side. In just a few lines of code, I've done some cool stuff without a page refresh or client side framework. Jim On Tuesday, March 15, 2016 at 2:44:10 PM UTC-4, Ruby-Forum.com User wrote: > >