mices

Activity Graph

Page 1 of 22 | Next »

2018-12-25

[19:47:59] mices: has joined #RubyOnRails
[19:48:11] mices: how do i scrape ui-box content
[19:49:17] mices: i see a bunch of scripts in chrome-dev tools->network->js
[20:00:06] mices: has left #RubyOnRails: ("Leaving")

2018-11-05

[17:14:46] mices: has joined #RubyOnRails
[17:19:12] mices: https://gist.github.com/mices/e63cab03f4f806cd21ca30c855ff6060
[17:19:33] mices: trying to update all records in table ^
[17:19:52] mices: for some reason the data doesn't change
[17:23:07] mices: console shows begins and commits
[17:23:11] mices: no rollbacks
[17:24:02] mices: yes try it in console on a single variable
[17:24:38] mices: i'll try with tr
[17:28:03] mices: i wanna strip all non digits from phone numbers and also remove leading +1
[17:38:14] mices: there aren't any validations in the Sm model
[17:46:57] mices: thanks, what about the ()'s
[17:47:37] mices: but i switched it to gsub and it didn't work can you please refresh the gist
[17:48:15] mices: ok thanks, parentheses still follow?
[17:49:07] mices: yea that worked thanks
[17:49:13] mices: cool insight
[17:49:48] mices: does ! mean ok to patch
[17:56:58] mices: no need to recover from save if it doesn't save
[17:57:13] mices: ? do you mean recover like rollback?
[17:57:27] mices: i guess i don't know what recover means
[18:17:12] mices: this was a good learning experience for me i was looking for an old lost phone number and i found a backup of my phone's sms created by sms backup+ for android so i had to read in the text file but it was all one line so i wrote a counter to treat each 5th element as the first element in a new array
[18:18:03] mices: cause that's the way the android app creates the backup
[18:18:38] mices: the only way you know a new record is counting tabs
[18:19:09] mices: so at the end of my loop i just put counter+=5
[18:23:16] mices: gonna have to learn awk syntax i'll read a cheat sheet
[21:11:43] mices: Ping timeout: 245 seconds

2018-09-15

[06:09:57] mices: has joined #RubyOnRails
[06:21:34] mices: i wanna create a link to a javascript function but not create a route for it
[07:37:42] mices: Ping timeout: 272 seconds
[12:49:59] mices: has joined #RubyOnRails
[18:51:51] mices: Quit: Leaving

2018-09-08

[00:28:16] mices: has joined #spree
[00:28:16] mices: Changing host
[00:28:16] mices: has joined #spree
[00:33:14] mices: Ping timeout: 272 seconds

2018-09-07

[15:24:36] mices: has joined #spree
[15:24:37] mices: has joined #spree
[15:24:37] mices: Changing host
[15:24:55] mices: how are storage folder and file names created
[20:21:48] mices: Ping timeout: 272 seconds
[20:33:07] mices: has joined #spree
[20:50:07] mices: Ping timeout: 240 seconds

2018-09-05

[01:03:04] mices: Ping timeout: 246 seconds
[01:37:53] mices: has joined #RubyOnRails
[01:38:07] mices: Client Quit

2018-09-04

[02:47:54] mices: has joined #RubyOnRails
[02:48:59] mices: why would someone put `render :action => :show` inside the show action
[02:52:09] mices: sevenseacat ty
[03:35:20] mices: well i found what had broken mailboxer it wasn't my code it was the difference between rails 5.0.0 and 5.0.1
[03:35:50] mices: Radar Sevenseacat ^
[04:40:10] mices: emmezeta probably to comply with the validations in the models that control access to the database
[04:40:31] mices: or i dunno
[04:40:59] mices: the models can be full of statements to enforce data integrity
[21:22:32] mices: Ping timeout: 244 seconds
[22:22:04] mices: has joined #RubyOnRails

2018-09-03

[02:50:02] mices: has joined #RubyOnRails
[02:50:16] mices: hi sevenseacat
[02:50:34] mices: https://gist.github.com/mices/e446b5b90e0d65ad0d5a559aa15f9e9b
[02:50:44] mices: i got dc'd
[02:53:20] mices: i must have messed somethingn up?
[03:08:34] mices: Ping timeout: 246 seconds
[09:59:08] mices: has joined #RubyOnRails
[09:59:29] mices: i'm trying to understand the models of mailboxer gem
[10:01:13] mices: i found "belongs_to :sender :polymorphic => :true, :required => false" in notification.rb but i can't find "as: : sender" in any of the other models
[13:09:41] mices: https://gist.github.com/mices/e446b5b90e0d65ad0d5a559aa15f9e9b
[13:39:21] mices: Remote host closed the connection
[13:41:54] mices: has joined #RubyOnRails
[13:42:05] mices: https://gist.github.com/mices/e446b5b90e0d65ad0d5a559aa15f9e9b
[14:19:57] mices: Ping timeout: 244 seconds
[15:05:09] mices: has joined #RubyOnRails
[18:19:13] mices: Remote host closed the connection

2018-08-31

[13:27:34] mices: has joined #RubyOnRails
[13:28:31] mices: does anyone know of an auction site solution
[15:24:10] mices: Ping timeout: 244 seconds

2018-08-16

[03:55:14] mices: has joined #spree
[03:55:30] mices: how does image uploading work with no paperclip in the gemfile
[05:41:13] mices: Ping timeout: 244 seconds
[11:24:22] mices: has joined #spree
[11:31:09] mices: Quit: Leaving
[15:17:39] mices: has joined #spree
[15:18:23] mices: can i setup paypal to have a different "name that appears on credit card statement" for each of my sites with only one paypal business account
[15:19:26] mices: also, paypal::express_checkout or similarly named isn't in the dropdown list i assume i don't need it
[15:20:31] mices: just using Spree::Gateway::PayPalGateway
[18:12:19] mices: Quit: Leaving

2018-07-21

[00:23:48] mices: has joined #RubyOnRails
[00:24:08] mices: what does it mean when console returns a : prompt
[02:18:53] mices: Ping timeout: 276 seconds

2018-07-11

[01:16:08] mices: has joined #RubyOnRails
[04:13:05] mices: Ping timeout: 240 seconds

2018-07-02

[18:29:32] mices: has joined #RubyOnRails
[18:33:31] mices: i tried pasting a whole locale file into google translate but things get all messed up cause when i copy the text back, all the colons and quotation marks returned are formatted as utf8 weird characters by google translate and the files don't work, anyone else tried doing this and found a better way
[19:11:16] mices: Quit: Leaving

2018-06-12

[00:38:18] mices: Ping timeout: 256 seconds
[01:01:17] mices: has joined #spree
[01:01:17] mices: Changing host
[01:01:17] mices: has joined #spree
[06:39:21] mices: Ping timeout: 240 seconds

2018-06-11

[07:04:43] mices: has joined #spree
[07:04:43] mices: Changing host
[07:04:43] mices: has joined #spree
[07:04:51] mices: anyone at keyboard?
[07:04:54] mices: at this hour
[07:05:49] mices: i think spree is pretty good to say the least but datashift_spree seems not on scale with it, it's all messed up, what is the verdict on datashift_spree please
[09:42:22] mices: Ping timeout: 264 seconds
[14:39:06] mices: has joined #spree
[15:12:25] mices: i wanna import products from aliexpress / drop_ship can someone advise
[15:12:55] mices: spree_drop_ship is meant to work with what supplier?
[18:27:34] mices: Ping timeout: 256 seconds
[19:22:11] mices: has joined #spree
[19:22:11] mices: Changing host
[19:22:11] mices: has joined #spree

2018-06-08

[13:25:12] mices: has joined #RubyOnRails
[16:06:52] mices: Ping timeout: 260 seconds

2018-06-02

[06:00:19] mices: has joined #RubyOnRails
[06:00:55] mices: how do i render an html partial with format.json
[06:01:09] mices: all the examples i see use outdated syntax
[06:01:45] mices: i'm trying something like this ... format.json { render js partial 'flag_link' } notice: 'You already flagged this post' }
[07:59:09] mices: Ping timeout: 256 seconds
[12:33:44] mices: has joined #RubyOnRails
[12:38:45] mices: how do i render an html partial using format.json
[12:58:35] mices: Quit: Leaving
[14:40:50] mices: has joined #RubyOnRails
[14:41:01] mices: anyone can help me with respond.json
[14:41:14] mices: i wanna send a notice and that's all
[14:49:59] mices: if i'm using rails-i18n gem and i set locale to :zh-TW my locale file should still only begin with zh: right?
[14:52:21] mices: nevermind
[16:31:01] mices: how do i respond_to with just a notice and leave the page unchanged
[16:31:22] mices: or even without the notice
[16:32:06] mices: i'm working on users can flag posts but if they already flagged the post as determined by their remote_ip then just ignore
[16:32:43] mices: i have no idea how to do this if i respond head :ok then rails returns a blank page
[16:33:10] mices: the actions in another controller but it seems too much to redirect just for this
[16:33:32] mices: i feel why redirect when i don't even want to change the page
[17:45:47] mices: Ping timeout: 265 seconds

2018-06-01

[00:00:46] mices: has joined #RubyOnRails
[00:02:06] mices: even though i'm using bootstrap-sass and sass-rails my app still looks for files ending in css and postpends css to whatever filename i give it
[01:32:22] mices: Ping timeout: 244 seconds

2018-05-30

[06:04:55] mices: has joined #RubyOnRails
[06:07:05] mices: I generated a mailer named GeneralMailer but when I try to call it from the admin_controller.rb i get an error not recognized undefined method `GeneralMailer' for #<AdminController:0x007f0c70a660c0>
[06:08:02] mices: could it be because i'm calling it from a post request without any respond_to ?
[06:08:49] mices: i'm using a form for subject and message to send mail to all users so i put in the subject message and click submit
[06:09:22] mices: i was trying to do it with a get request but rails kept asking for post so i said let me see what'll happen if i change it to post
[06:09:31] mices: now i'm not sure which would be preferred
[06:44:27] mices: Ping timeout: 240 seconds
[14:52:41] mices: has joined #RubyOnRails
[14:53:10] mices: anyone can help me debug this mailer
[14:53:15] mices: https://gist.github.com/mices/38bff77686c832a797dac365ad545609
[14:53:53] mices: the controller action accepts input from a form for subject and message fields
[14:54:09] mices: message is the body of the email
[15:29:23] mices: Ping timeout: 256 seconds

2018-05-26

[00:37:51] mices: Ping timeout: 256 seconds
[00:40:29] mices: has joined #RubyOnRails
[00:40:51] mices: how do i make locale "en" only available in development
[00:43:09] mices: i see, "available_locales"
[01:48:35] mices: Ping timeout: 260 seconds
[14:57:40] mices: has joined #RubyOnRails
[14:58:00] mices: how do i set an environment variable from within production.rb
[15:23:35] mices: Read error: Connection reset by peer
[19:01:04] mices: has joined #RubyOnRails
[19:01:33] mices: does putting adsense ads on my site help people find my site
[19:01:49] mices: will it bring traffic to a new launch
[20:16:33] mices: Ping timeout: 248 seconds

2018-05-25

[18:54:29] mices: has joined #RubyOnRails
[18:54:38] mices: what shopping cart gem supports stripe
[21:44:05] mices: Ping timeout: 240 seconds
[23:31:35] mices: has joined #RubyOnRails
[23:32:13] mices: i'm working on a site i don't want people to be able to copy text or view it in source how do i do that?
[23:34:41] mices: i saw a script i can put on the page is that a good approach, css is browser dependent unpredictible
[23:34:51] mices: unpredictable

2018-05-22

[01:24:51] mices: has joined #RubyOnRails
[01:25:39] mices: how do i make a meta tag in my view to render this html <meta http-equiv="X-UA-Compatible" content="IE=edge" />
[01:56:58] mices: just the html?
[02:00:44] mices: Quit: Leaving
[02:22:29] mices: has joined #RubyOnRails
[02:22:46] mices: if the script contains: `return res.token;` how do i see if token is success in my controller? ... if token.success?
[03:31:27] mices: Ping timeout: 245 seconds
[19:26:13] mices: has joined #RubyOnRails
[19:28:57] mices: a javascript that ends with `return res.token` will send what parameter name to the controller?
[19:31:51] mices: return res.token;
[19:31:51] mices: return paypal.request.post(SETEC_URL).then(function(res) {
[19:32:41] mices: SETEC_URL gets replaced with my controller's url
[19:38:30] mices: MrCrackPotBuilde https://gist.github.com/mices/cb2ddb39fe630b1d377dcfa81b946300
[19:40:51] mices: sounds like it needs work
[19:43:31] mices: i dunno i haven't looked at this closely enough yet, i dunno if i should use this or the paypal-ruby-sdk
[19:43:39] mices: this is express checkout
[19:45:19] mices: how many times a day do you think paypal backs up their database?
[19:46:11] mices: or any site where users have accounts containing money or credits otherwise
[19:48:21] mices: its your singular vs plural names for your models and relationships
[19:50:08] mices: join tables have to be named using singular for both tables example "person_address"
[19:50:30] mices: belongs to person, belongs to address
[19:51:01] mices: sorry "address_person" i think
[19:51:30] mices: has_many :addresses, through: :address_people
[19:51:30] mices: then person has_many :address_people
[19:53:55] mices: i read that 3rd party gems had better docs than paypal
[19:54:30] mices: @gym_membership+@user
[19:55:39] mices: you create an object for the gym membership and add the user object to it
[20:04:10] mices: RougeR you can create an object representing the groups users and then just add a list of @users to it with @membership.users + @users
[20:05:04] mices: RougeR then @membership.save
[20:07:01] mices: RougeR then you can create a checkbox list of users and check all the users you wanna add and click submit once
[20:08:08] mices: through membership_user
[20:09:17] mices: the names of the join tables in has_many_through have to be singular for both tables and in alphabetical order
[20:19:50] mices: MrCrackPotBuilde in these examples i should replace return with something= i think
[20:20:20] mices: to contain what's been returned no?
[21:44:48] mices: Ping timeout: 245 seconds

2018-05-21

[17:46:55] mices: has joined #RubyOnRails
[17:47:46] mices: how can i make my dev environment more like production so i don't keep getting caught by surprise with things not working in production that were working in development
[17:48:04] mices: and i don't have to keep going back to my server
[19:24:22] mices: Ping timeout: 245 seconds

2018-05-20

[04:20:33] mices: has joined #spree
[04:20:54] mices: anyone at keyboard
[04:21:08] mices: has joined #RubyOnRails
[04:21:35] mices: can i plugin spree payments on any website or only on spree sites
[05:28:49] mices: i wanna integrate spree payments into my own site i built from scratch can i do that
[05:29:27] mices: i'm doing an auction site it's easier to write an auction site from scratch than to adapt a marketplace site to an auction site?
[06:09:26] mices: alixaris upgrade the whole app all your gems
[06:09:46] mices: upgrade the app to rails 5
[06:10:29] mices: answers to solutions are commonly this was fixed in such and such release
[06:45:50] mices: Quit: Leaving

2018-05-13

[02:45:34] mices: has joined #RubyOnRails
[03:54:33] mices: Ping timeout: 265 seconds
[10:22:12] mices: has joined #RubyOnRails
[10:23:14] mices: i'm trying to render a partial from create.js.erb and the log says missing template, the template is in app/views/transactions but it's searching app/views
[10:23:52] mices: $('#drop_in_container').html('<%= j render partial: '/transactions/receipt', locals: @transaction %>')
[10:24:13] mices: the path to the file is app/views/transactions/_receipt.html.erb
[10:44:04] mices: when i googled this, it appears as if it's perfectly normal to render the html partial
[11:11:57] mices: Ping timeout: 240 seconds
[15:09:18] mices: has joined #RubyOnRails
[15:09:31] mices: sevenseacat: ActionView::MissingTemplate (Missing partial transactions/_receipt, application/_receipt with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
[17:22:44] mices: Ping timeout: 260 seconds
[18:16:38] mices: has joined #RubyOnRails
[18:25:37] mices: Ping timeout: 256 seconds

2018-05-12

[21:39:57] mices: i imagine the script expects it own container to be the dom element the response fills
[21:40:07] mices: by responding js
[21:40:22] mices: and i'm doing something weird by not responding js?
[21:40:52] mices: the script makes a successful post to the controller
[21:49:43] mices: it seems i should google responding to ajax requests
[22:12:51] mices: Ping timeout: 240 seconds