[Rails] Problem when inheriting subclass

2017-08-16 Thread Daniel Faiole
Hi, I can't seem to find anything on the web regarding this error I found. I don't know if it's something i did wrong or just some kind of bug. I have 2 engines, named "Pes" and "Iss". "Pes" is the most atomic engine in our project and all other engines will add it as a dependency, it has these

Re: [Rails] path to images on another app

2017-08-16 Thread fugee ohu
On Friday, August 11, 2017 at 8:10:38 AM UTC-4, Walter Lee Davis wrote: > > > > On Aug 11, 2017, at 2:34 AM, Colin Law > > wrote: > > > > On 10 August 2017 at 13:36, fugee ohu > > wrote: > >> > >> > >> On Thursday, August 10, 2017 at 3:01:06 AM UTC-4, Colin Law wrote: > >>> > >>> On 10 A

Re: [Rails] How are XHR requests made when also a post?

2017-08-16 Thread Hassan Schroeder
On Wed, Aug 16, 2017 at 5:25 AM, S Ahmed wrote: > I know about the post request. Just ensure when it is considered a > post.xhr? request. >From rack 2.0.3 lib/rack/request.rb: def xhr? get_header("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest" end This is from Rails 5.1.2, btw. You can find

Re: [Rails] How are XHR requests made when also a post?

2017-08-16 Thread S Ahmed
I know about the post request. Just ensure when it is considered a post.xhr? request. On Wed, Aug 16, 2017 at 7:45 AM, Norbert Melzer wrote: > (new XMLHttpRequest).open('POST', 'foo.xml', 'data') via JavaScript should > do a POST request. At least according to wikipedia. But Rails 2.2 is quite

Re: [Rails] How are XHR requests made when also a post?

2017-08-16 Thread Norbert Melzer
(new XMLHttpRequest).open('POST', 'foo.xml', 'data') via JavaScript should do a POST request. At least according to wikipedia. But Rails 2.2 is quite old, you should prepare to rewrite ;) S Ahmed schrieb am Mi., 16. Aug. 2017 um 04:34 Uhr: > In rails 2.2 there was checks in the code like: > > if

[Rails] file upload w/ carrierwave file field

2017-08-16 Thread fugee ohu
I'm mounting the uploader on a string field, :name In my form <%= f.file_field :name %> When the form submits this is what gets logged: Started POST "/user/pictures/new" for 127.0.0.1 at 2017-08-16 05:27:01 -0400 Processing by UserPicturesController#create as HTML Parameters: {"utf8"=>"���",