[Rails] best dictionary

2016-01-14 Thread Alsoft Rubel
An impressive and easy-to-use online dictionary, ALDictionary is for everyone. Whether you are a student, parent, teacher or a scholar looking to learn English, Spanish, Hindi, Bengali or Arabic or just wanting to know the meaning, usage and pronunciation of certain words, turn into our dictionary.

[Rails] best dictionary

2016-01-14 Thread Alsoft Rubel
An impressive and easy-to-use online dictionary, ALDictionary is for everyone. Whether you are a student, parent, teacher or a scholar looking to learn English, Spanish, Hindi, Bengali or Arabic or just wanting to know the meaning, usage and pronunciation of certain words, turn into our dictionary.

Re: [Rails] Looking for a way to create a report. Long story...

2016-01-14 Thread Colin Law
On 14 January 2016 at 19:10, Pedro Santos wrote: > Actually LibreOffice don't save html file in doc format. =/ Mine does (5.0.2.2 and I am confident it has for all the versions I have used over a number of years). One of the format options when saving is "Microsoft Word 97-2003(.doc)". I have

Re: [Rails] Looking for a way to create a report. Long story...

2016-01-14 Thread Pedro Santos
Actually LibreOffice don't save html file in doc format. =/ > > I believe LibreOffice can open html files, which could then be saved > as doc. I guess the MS equivalent can also do that, but I don't know. > Easy enough to try it. > > Colin > -- You received this message because you are subs

[Rails] Re: Polymorphic join table not loading with includes

2016-01-14 Thread Flemming Thesbjerg
I will remember to post the sql output next time. I tried using the references solution earlier but that was not an acceptable solution because it created a really large query and crippled my performance. After testing it. It seems you're first proposal will do the job for me. I was hoping for

Re: [Rails] Markdown or somthing like this

2016-01-14 Thread Hassan Schroeder
On Thu, Jan 14, 2016 at 9:30 AM, Shabbir Ahmed wrote: > I need to add markdown or somthing like this on my web site for edit > text, which plugin suitable for Ruby on Rails & how to add this. https://www.ruby-toolbox.com/search?utf8=%E2%9C%93&q=markdown -- Hassan Schroeder

[Rails] Markdown or somthing like this

2016-01-14 Thread Shabbir Ahmed
Hi All, I need to add markdown or somthing like this on my web site for edit text, which plugin suitable for Ruby on Rails & how to add this. Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gr

Re: [Rails] search backwards in an one-to-many association

2016-01-14 Thread Colin Law
On 14 January 2016 at 14:26, Lei Zhang wrote: > > > On Thursday, January 14, 2016 at 4:55:28 PM UTC+8, Colin Law wrote: >> >> On 14 January 2016 at 02:24, Lei Zhang wrote: >> > A for person, C for organization, which means they both have names. >> > >> > Like, a person called John Terry, and he i

Re: [Rails] Looking for a way to create a report. Long story...

2016-01-14 Thread Colin Law
On 14 January 2016 at 13:02, Pedro Santos wrote: > Basically, I need to generate reports which contains more than 300 tables, > over 100 charts and many images. Until now this was done manually in docx, > so I was asked to build an RoR app where the user could add all the images > and data, and wi

[Rails] Looking for a way to create a report. Long story...

2016-01-14 Thread Pedro Santos
Basically, I need to generate reports which contains more than 300 tables, over 100 charts and many images. Until now this was done manually in docx, so I was asked to build an RoR app where the user could add all the images and data, and with one button click get the report. Here is the problem

[Rails] Re: search backwards in an one-to-many association

2016-01-14 Thread Jim
On Wednesday, January 13, 2016 at 12:13:36 PM UTC-5, Jim wrote: > > > If you want to load matching As without instantiating the Cs, you could do > something like: > > A.where(id: C.where(code: params[:codes]).pluck(:a_id)) > > If you are going to instantiate all As and Cs found anyway, you could j

[Rails] Re: Rails + Passenger on Heroku: set expiry date or a maximum age in the HTTP headers for static assets

2016-01-14 Thread Amr Noman
Thank you Frederick, I figured it out and answered my own question here . On Thursday, January 14, 2016 at 4:37:03 PM UTC+3, Frederick Cheung wrote: > That sounds correct

[Rails] Re: Polymorphic join table not loading with includes

2016-01-14 Thread Matt Jones
On Wednesday, 13 January 2016 16:59:34 UTC-5, Flemming Thesbjerg wrote: > > > I am trying to optimize a slow query with an includes statement. > > > But a join table with a polymorphic association seem to be preventing it. > > > The following gist tries to illustrate the issue: > https://gist.g

Re: [Rails] search backwards in an one-to-many association

2016-01-14 Thread Lei Zhang
On Thursday, January 14, 2016 at 4:55:28 PM UTC+8, Colin Law wrote: > > On 14 January 2016 at 02:24, Lei Zhang > > wrote: > > A for person, C for organization, which means they both have names. > > > > Like, a person called John Terry, and he is affiliated to three > > organizations called C

[Rails] Re: Rails + Passenger on Heroku: set expiry date or a maximum age in the HTTP headers for static assets

2016-01-14 Thread Frederick Cheung
On Thursday, January 14, 2016 at 11:49:31 AM UTC, Amr Noman wrote: > > I'm using Rails api with an angularjs front-end which is served simply as > static files under public directory (no sprockets or rails assets > pipeline involved). > > I've chosen passenger as the app server, deployed to her

Re: [Rails] How to use company_name on the url instead of company_id

2016-01-14 Thread nanaya
On Thu, Jan 14, 2016, at 21:01, Shabbir Ahmed wrote: > Hi all, How to use company_name on the url instead of company_id. > This should help. http://api.rubyonrails.org/classes/ActiveRecord/Integration/ClassMethods.html#method-i-to_param -- You received this message because you are subscribed

[Rails] How to use company_name on the url instead of company_id

2016-01-14 Thread Shabbir Ahmed
Hi all, How to use company_name on the url instead of company_id. This is my routes: get 'company/:company_id' => 'company#company', as: :company This is my controller: @company_view = Company.find(params[:company_id]) This is view: <%=link_to company.company_name, company_path(:company_id

[Rails] Rails + Passenger on Heroku: set expiry date or a maximum age in the HTTP headers for static assets

2016-01-14 Thread Amr Noman
I'm using Rails api with an angularjs front-end which is served simply as static files under public directory (no sprockets or rails assets pipeline involved). I've chosen passenger as the app server, deployed to heroku and everything seems to be working fine except for caching. Since stati

[Rails] I want eCommerce solution to my application where money can be transfer from buyer to seller

2016-01-14 Thread shaik . shavali
Workflow: Buyer can purchase a product from my application by using various options like PayPal or CreditCard. The money can be directly credited to the seller. Is there any built in solution in Rails, Suggest me. -- You received this message because you are subscribed to the Google G

Re: [Rails] search backwards in an one-to-many association

2016-01-14 Thread Colin Law
On 14 January 2016 at 02:24, Lei Zhang wrote: > A for person, C for organization, which means they both have names. > > Like, a person called John Terry, and he is affiliated to three > organizations called Chelsea FC, London Something, and UK Good Football > Player. ( I made up the other two org.