Re: [Rails] webrtc - anyone done multi video ?

2020-03-20 Thread tom
bunch of quick-start code that you can use to build a whole custom > videoconferencing rig. I haven't dug into it in depth, but Twilio usually > do a very thorough job of documenting (and writing) their applications. > > Walter > > > On Mar 19, 2020, at 9:59 PM, tom wrote: >

Re: [Rails] webrtc - anyone done multi video ?

2020-03-19 Thread tom
yes thank you, used them for sms... On Thu, Mar 19, 2020, 5:18 PM Walter Lee Davis wrote: > Have you looked at this yet? https://www.twilio.com/docs/video > > Walter > > > On Mar 19, 2020, at 5:00 PM, tom wrote: > > > > hi, > > > > i have ju

[Rails] webrtc - anyone done multi video ?

2020-03-19 Thread tom
hi, i have just finished a webrtc chat via action cable, but before spending even more time on it trying to get video on as well, i was wondering if anyone can share any 'tips' or guides. thank you all in advance -- You received this message because you are subscribed to the Google Groups

[Rails] how do i handle one api route?

2019-12-29 Thread tom
hi, i have an app with one api endpoint. that end point is more and more in use, and i was wondering how i can make that endpoint not boggle down the app? the result of the api is either kicking off a background job or a result from a calculation thank you -- You received this message

Re: [Rails] need help with carrierwave - multiple vs single file upload

2019-11-01 Thread tom
can do is to always have multiple > files and attach only one file when you get a single file upload. I don't > understand the use case of your idea. > > El vie., 1 nov. 2019 a las 14:41, tom () escribió: > >> yep - its working. >> but, can i get the array of filenames in case

Re: [Rails] need help with carrierwave - multiple vs single file upload

2019-11-01 Thread tom
ent (and that's on your > folder_attachment_params method) > > El vie., 1 nov. 2019 a las 14:19, tom () escribió: > >> ok, the plural got me beyond an error message, but i cant see the >> uploaded multiuploaded files. singles files work. >> >&g

Re: [Rails] need help with carrierwave - multiple vs single file upload

2019-11-01 Thread tom
1, 2019 at 12:24 PM Ariel Juodziukynas wrote: > Also, use "mount_uploader" singular for the single file and > "mount_uploaders" plural for the multiple files > > El vie., 1 nov. 2019 a las 12:44, tom () escribió: > >> hi, >> >> i want

[Rails] need help with carrierwave - multiple vs single file upload

2019-11-01 Thread tom
hi, i want to have one uploader, but 2 forms: Upload Single Attachment <%= simple_form_for(FolderAttachment.new) do |form| %> <%= form.error_notification %> <%= form.file_field :singlefile %> <%= form.input :folder_id , :as => :hidden , :input_html => { :value => @

[Rails] has_many & build & first_or_create

2019-07-11 Thread tom
HI, i want to upload a has_many association. but instead of adding records, i would like to to incorporate first/find_or_create. is that posible? @p = Project.new(params) @pt = @p.tasks.build(params) @p.find_or_create is that possible? thx -- You received this message because you are

[Rails] @ gem cocoon - how do i

2019-06-10 Thread tom
HI, i am baffled on how to make the first set of nested fields visible. currently, it all works, but even just in order to display the 1st set of fields, i have to click "add " 2) how do i assign values to the object in the controller to the first set ? thank you -- You received this

[Rails] how can i get user count on product page ?

2019-06-06 Thread tom
i would like to know how many people are visiting the current page , eg: xyz amount of visitors are looking at the same product thx -- 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

[Rails] loading localhost:3000/projectszzzzz takes forever to load > 2min

2019-05-23 Thread tom
i have roughly 30 resources in routes, 10 scopes, a few nested resources. how can i find out what the problem is? -- 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

Re: [Rails] help...how do i get the "projects_path" from controller?

2019-05-21 Thread tom
ss > > > > El mar., 21 may. 2019 a las 16:03, Walter Lee Davis () > escribió: > > You could use > > > > link_to 'Index', url_for(controller: controller_name, action: :index) > > > > instead. That would be agnostic of whichever controller was re

Re: [Rails] help...how do i get the "projects_path" from controller?

2019-05-21 Thread tom
(controller: controller_name, action: :index) >> >> instead. That would be agnostic of whichever controller was rendering >> that _index.html.erb partial. >> >> Walter >> >> > On May 21, 2019, at 2:59 PM, tom wrote: >> > >> > yes i do:

Re: [Rails] help...how do i get the "projects_path" from controller?

2019-05-21 Thread tom
on > projects? > > Walter > > > On May 21, 2019, at 2:46 PM, tom wrote: > > > > hi, i have a generic _index partial, but i am struggling with > constrcuting the > > > > (link_to "show", ..(rec.id)) > > > > > > how can i g

[Rails] help...how do i get the "projects_path" from controller?

2019-05-21 Thread tom
hi, i have a generic _index partial, but i am struggling with constrcuting the (link_to "show", ..(rec.id)) how can i get that filled in? i have tried via url_for (controller & action), but it always says: arguments passed to url_for can't be handled please help thx -- You received this

[Rails] index partial, link to show

2019-05-17 Thread tom
hi, I have a generic index partial, but link to show action is giving me routing errors. I have a few routes scoped, but no luck...any ideas? -- 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 can i access locale files from rake task

2019-01-21 Thread tom
hi, how can i do this? task test: :environment do p t('pages.index.slogan11') end -- 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] help with multiple domains into one app

2019-01-10 Thread tom
hi,, i have 2 domains setup and i am having issues. 2 domains, layout is being picked in applciaiton controller. 1st load after deploy shows correct site, but subsequent reloads just show same site under both domains. here the routes: class Subdomain1 def self.matches?(request)

[Rails] intermittent ASCII-8BIT and UTF-8

2018-12-14 Thread tom
hi, i am getting the error above in a _form. i have taken the form 100times apart, put back together, i have all utf8 settings in place. i just realized that it actually doesnt come all the time, when i reload the page couple of times, it comes, a reload seconds later will show page correctly.

[Rails] 2 production environments > device mails

2018-12-13 Thread tom
hi, i am loading up 2 different production environments under 2 different domain names (1 & 2). but when i send out devise emails, the default_url_options aka the href links within the emails always point to the same domain (1) i am setting this differntly in both env files: prod1

[Rails] help with multiple production evvironmnets & devise config

2018-12-07 Thread tom
hi, i have 2 (A) production env files, set/loaded by passenger. here an excerpt from A: config.active_record.dump_schema_after_migration = false config.app_domain = 'fooo.com' config.action_mailer.default_url_options = { host: 'https://www.fooo.com' }

[Rails] devise custom controller, custom mailer & opts[:options]

2018-12-06 Thread tom
hi, in my app i need to set & send different emails. the app operates under 3 domains, and so i want to the able to set the opt[] hash accordingly with template and url options ... --> from within the mailer i cannot access 'request' object, hence i need to saty within my cusotm devise

[Rails] rails & custom devise controller > email templates

2018-11-15 Thread tom
hello, i have an app that operates under 2 domains, depending on the domain the app serves 2 different application layouts. Now i want to show different devise-email-layouts when sending these devise emails. I have the custom devise controllers and i can trigger them from an test action, but i

Re: [Rails] why is HTTP_HOST set to "wrong" value on 2nd nginx server ?

2018-11-13 Thread tom
thank you for the hint. my problem is that the slection of th elayout works just fine in development mode + dns in windows host file ; but no on production server, it on,y says template not found... thx On Fri, Nov 9, 2018 at 6:56 AM Rob Jonson wrote: > > somewhat off the topic - but just want

Re: [Rails] why is HTTP_HOST set to "wrong" value on 2nd nginx server ?

2018-11-08 Thread tom
never mind. did clear browser cache...too many windows... too much of a day... i am trying to figure our why layout is not being triggerd in applicaiton controller thx again On Wed, Nov 7, 2018 at 5:11 PM Hassan Schroeder wrote: > > On Wed, Nov 7, 2018 at 11:05 AM tom

[Rails] why is HTTP_HOST set to "wrong" value on 2nd nginx server ?

2018-11-07 Thread tom
hi, i have a nginx server serving a ror app (1). now i have added a second server section , different server_name directive in nginx.conf serving up the same app but with a different layout based on controlle rlogic based on the HOST_NAME. it works locally, but the server still show HOSTNAME

[Rails] pls help : i am using devise & devise async & invitable

2018-08-27 Thread tom
rgumentError in Devise::PasswordsController#create wrong number of arguments (given 3, expected 1..2) Extracted source (around line *#27*): 252627282930 # processing instead of sending it inline as devise does by # default. def send_devise_notification(notification, opts = {})

[Rails] Re: need help with whenever gem

2018-08-21 Thread tom
nevermind - i updated rvm to latest & latest ruby. all good now On Tue, Aug 21, 2018 at 9:59 AM tom wrote: > it used to work just fine until a few days ago. now i am getting: > > /home/railsuser/.rvm/gems/ruby-head/gems/bundler-1.16.4/lib/bundler/spec_set.rb:91:in > `bloc

[Rails] need help with whenever gem

2018-08-21 Thread tom
it used to work just fine until a few days ago. now i am getting: /home/railsuser/.rvm/gems/ruby-head/gems/bundler-1.16.4/lib/bundler/spec_set.rb:91:in `block in materialize': Could not find rake-12.3.1 in any of the sources (Bundler::GemNotFound) i have added now this to my schedule.rb file:

Re: [Rails] lat lng + radius -> calculate in boundaries of

2018-08-20 Thread tom
, Aug 17, 2018 at 5:34 PM Hassan Schroeder wrote: > On Fri, Aug 17, 2018 at 12:59 PM, tom wrote: > > > does anyone know how to calculate that w/o using geo-api calls? > > > https://stackoverflow.com/questions/12966638/how-to-calculate-the-distance-between-two-gps-coordinates

[Rails] lat lng + radius -> calculate in boundaries of

2018-08-17 Thread tom
using geo-api calls? thx tom -- 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 to this g

[Rails] mutliple domains / apps > postifx

2018-07-16 Thread tom
hi, i was wondering if someone could point me in the right direction: i have 3 rails apps on the same server, each needs to send out emails. its all working, but app2 & app3 are sending under the domain name of app1, which is not good. how do you guys fix that? thx -- You received this message

[Rails] Multiple migrations have the name CreateCkeditorAssets

2018-07-06 Thread tom
hi, i am getting this on my production server. locally all is good. i have removed the gem from gem file, reverted back all changes. deleted migration file. removed table entry in schema_migrations. empty git repo, unistalled all chkeditor gems. but when i deploy, i still get the error. any

[Rails] server performance , out of memory etc

2018-06-27 Thread tom
hi, i was wondering what a typical setup for a small web app is. my challenge currently is that my server kills some processes because im out of memory. i am running ruby 2.3, nginx, passenger, mta, sidekick. i have 4gb ram and i am on digital ocean. i have barely any traffic on the site. what

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
; > wrote: > > On Mon, Mar 5, 2018 at 9:59 AM, tom <tomabr...@gmail.com> wrote: > > so how can i pass this along? why is it not assuming html? > > > Because computers don't make assumptions?  > > Why are you telling it to respond differently depending on the for

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
, :defaults => { :format => 'html' } fixed it thank you On Mon, Mar 5, 2018 at 1:15 PM, Hassan Schroeder <hassan.schroe...@gmail.com > wrote: > On Mon, Mar 5, 2018 at 9:59 AM, tom <tomabr...@gmail.com> wrote: > > so how can i pass this along? why is it not assuming

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
so how can i pass this along? why is it not assuming html? On Mon, Mar 5, 2018 at 12:53 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Mon, Mar 5, 2018 at 9:33 AM, tom <tomabr...@gmail.com> wrote: > > getting 406 due to rails giving me ActionController::Un

Re: [Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
roe...@gmail.com> wrote: > On Mon, Mar 5, 2018 at 9:13 AM, tom <tomabr...@gmail.com> wrote: > > > i have a couple of 'seo' routes, which are not responding well > > What does that mean? > > ( http://www.catb.org/esr/faqs/smart-questions.html ) > > -- > Hassan Sch

[Rails] help: ActionController::UnknownFormat in FooController#index

2018-03-05 Thread tom
HI, i have a couple of 'seo' routes, which are not responding well eg: match 'whatever/in/:seoterm' , as: 'seo_whatever _in' , :to => 'foos#index', via: [:get] , :mode=>{:x=>' whatever ',:y=>1} respond_to do |format| format.html { } format.js { } format.json {

Re: [Rails] layout in application controller

2017-10-18 Thread tom
the function aka method does not get called. if I insert a print or something nothing shows in the log. I assumed you can set layout in application controller On Oct 17, 2017 6:01 PM, "Hassan Schroeder" <hassan.schroe...@gmail.com> wrote: On Tue, Oct 17, 2017 at 2:12

[Rails] layout in application controller

2017-10-17 Thread tom
hi, not sure why this is not working: layout :resolvelayout dev resolvelayout if 1==2 "a" else "b" end end I did restart sever... thx -- 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] help with ransack / mysql performance

2017-10-12 Thread tom
hi, i am using ransack and i am experiencing slow queries, eg on the search sites i have a query like that: SELECT DISTINCT COUNT(DISTINCT `tablename`.`id`) FROM `tablename` WHERE (`tablename`.`city` LIKE '%Tampa%'); ~5sec w/o distinct ~ 6sec w/o distinct & w/o where ~4 sec what do you guys

Re: [Rails] Re: LoadError: Could not load 'active_record/connection_adapters/mysql2_adapter'

2017-06-27 Thread tom
i did that too, and reverted back; no go meanwhile i have trashed the image and recreated everything... thx everyone On Tue, Jun 27, 2017 at 10:04 AM, wrote: > On the server, try: > > cd /rorapps/myapp/production/myapp_com/current > > ~/.rvm/bin/rvm use

Re: [Rails] LoadError: Could not load 'active_record/connection_adapters/mysql2_adapter'

2017-06-26 Thread tom
local: precompiling assets locally - OK reverting back to mysql verison: gem 'mysql2' , '~> 0.3.20' server: rails c production - OK On Mon, Jun 26, 2017 at 4:46 PM, Colin Law <clan...@gmail.com> wrote: > On 26 June 2017 at 21:39, tom <tomabr...@gmail.com> wrote: > &

Re: [Rails] LoadError: Could not load 'active_record/connection_adapters/mysql2_adapter'

2017-06-26 Thread tom
e > > Also I notice you have > gem 'mysql2'# , '~> 0.3.18' > Why have you commented out the version requirement? I think it may be > required for rails 4.2 > > > Colin > > On 26 June 2017 at 16:41, tom <tomabr...@gmail.com> wrote: > > i did change fr

Re: [Rails] LoadError: Could not load 'active_record/connection_adapters/mysql2_adapter'

2017-06-26 Thread tom
pty true false doesnt make a difference... On Mon, Jun 26, 2017 at 11:41 AM, tom <tomabr...@gmail.com> wrote: > i did change from mysql to mariadb (debian 7 upgrade to 8). > just did this too: > > gem install mysql2 -- --with-mysql-config=/usr/bin/mariadb_config > > but

Re: [Rails] LoadError: Could not load 'active_record/connection_adapters/mysql2_adapter'

2017-06-26 Thread tom
pistrano-ssh-doctor', '~> 1.0' end gem 'devise-encryptable' #gem 'devise-async' #send email On Mon, Jun 26, 2017 at 11:23 AM, Colin Law <clan...@gmail.com> wrote: > On 26 June 2017 at 15:56, tom <tomabr...@gmail.com> wrote: > > HI, im getting the error below during a c

[Rails] LoadError: Could not load 'active_record/connection_adapters/mysql2_adapter'

2017-06-26 Thread tom
HI, im getting the error below during a cap deploy. i can run production console successfully on the server. any ideas? thx EBUG [04b3530e] Command: cd /rorapps/myapp/production/myapp_com/releases/20170626144940 && ~/.rvm/bin/rvm ruby-2.3.1@myapp_gemset do bundle install --path

[Rails] multiple nginx passenger processes!?

2017-06-14 Thread tom
hi, when i look into my running processes, i can see multiple processes like this one Passenger RubyApp: /rorapps/fooo/production/f_com/current/public (product each with 400-500mb memory consumption is this normal? -- You received this message because you are subscribed to the Google

Re: [Rails] type missmatch - class expected, but got string

2017-03-28 Thread tom
28, 2017 at 10:37 AM, tom <tomabr...@gmail.com> wrote: > > > model: > >belongs_to :ProvincialTaxAreaCode, class_name: "TaxArea", foreign_key: > > "ProvincialTaxAreaCode" #, primary_key: "ProvincialTaxAreaCode" > > > > Pr

[Rails] type missmatch - class expected, but got string

2017-03-28 Thread tom
hi,i am trying to use ror on a legacy system. model: belongs_to :ProvincialTaxAreaCode, class_name: "TaxArea", foreign_key: "ProvincialTaxAreaCode" #, primary_key: "ProvincialTaxAreaCode" ProvincialTaxAreaCode is a varchar(20) html-slect: test- 123 error:

[Rails] help: url/path for existing resources eg /toolbox

2017-01-03 Thread tom
hi, i have a few working resources, eg 'projects' & tasks. now i would like to prefix that with/under a path so that the url looks like that: domain.com/toolbox/projects how can i do that without moving everything into subfolders etc... thx -- You received this message because you are

[Rails] What initializer should I follow to be able to add to the config.assets.paths

2016-12-18 Thread Tom Prats
ns/41151649/what-initializer-should-i-follow-to-be-able-to-add-to-the-config-assets-paths Thanks, Tom -- 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

[Rails] Triggering a `rails assets:precompile` through a model

2016-12-18 Thread Tom Prats
ake effect until the next precompile. To me it'd make sense to have a background job triggered when the App's color column is updated. But this is where I get lost, because I'd want this job to trigger a precompile, but is there anything else it would have to do/should do to work? Is this a bad id

[Rails] how do i mount an app as engine?

2016-12-13 Thread tom
hi, i have an working rails4 app with devise user authentication and would like to mount that ap as an engine into a subdomain, but using the user authentication & table from the main app... how do i do that? thx -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Re: need help with devise / async >> ArgumentError (wrong number of arguments (given 3, expected 1..2)):

2016-12-06 Thread tom
great - so i would drop that function into the user-model? thx On Tue, Dec 6, 2016 at 11:54 AM, Jerry Clinesmith wrote: > devise_async doesn't support Devise 4: https://github.com/mhfs/ > devise-async/issues/94 > > Good news, you don't really need it, Devise has a

[Rails] Re: need help with devise / async >> ArgumentError (wrong number of arguments (given 3, expected 1..2)):

2016-12-06 Thread tom
anyone? thx On Mon, Dec 5, 2016 at 11:18 AM, tom <tomabr...@gmail.com> wrote: > it all worked locally, and now i am in production and get that: > > > ArgumentError (wrong number of arguments (given 3, expected 1..2)): > devise-async (0.7.0) lib/dev

[Rails] need help with devise / async >> ArgumentError (wrong number of arguments (given 3, expected 1..2)):

2016-12-05 Thread tom
it all worked locally, and now i am in production and get that: ArgumentError (wrong number of arguments (given 3, expected 1..2)): devise-async (0.7.0) lib/devise/async/model.rb:27:in `send_devise_notification' devise (4.2.0) lib/devise/models/confirmable.rb:117:in

[Rails] q: serving view to mobile

2016-08-15 Thread tom
HI, how do i server views to a mobile? after http-post comes in i want to return a url which point to my app, which in turn delivers an iframe(?) is that the right route? thx -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] help with sidekiq command during cap deploy - no such file or directory

2016-07-27 Thread tom
cd /rorapps/foo/staging/foo_com/releases/20160727210019 && /usr/bin/env sidekiq --index 0 --pidfile /rorapps/foo/stagingfoo_com/shared/tmp/pids/sidekiq-0.pid --environment staging --logfile /rorapps/foo/staging/foo_com/shared/log/sidekiq.log --daemon DEBUG [b52ffd5f] /usr/bin/env: DEBUG

Re: [Rails] koala - how to get users facebook friends

2016-07-18 Thread tom
that's what I'm not clear about. what reference do I have to pass instead of 'me'? I got the oath working and users can login via fb, but not sure what to pass here...what am I missing? thx On Jul 18, 2016 11:59 AM, "Colin Law" <clan...@gmail.com> wrote: > On 18 July 2016 at

[Rails] koala - how to get users facebook friends

2016-07-18 Thread tom
hi, im using the koala gem, and i woudl like to display a list of friends, meaning the friend of the user being displayed. ->> /user/:id/friends this give me only an empty array friends = @graph.get_connections("me", "friends", api_version: 'v2.0') not sure...pls help thx -- You received

Re: [Rails] need help: bundler / gems > method missing

2016-06-29 Thread tom
trano/bundler, gems are not in > stalled in the system or $GEMHOME, they are in > shared/bundle/ruby/RUBY_VERSION/gems, so they might not show up when you do > gems list outside the current folder. Pay attention to your capistrano > recipe.rb so check how you are loading the application.

[Rails] need help: bundler / gems > method missing

2016-06-29 Thread tom
hi, im trying to deploy an app via cap3/bundler/rvm on debian , user-rvm i go the app-code on the server, but when i test it via: bundle exec rails s -b 0.0.0.0 -p 3000 -e staging it throws an error that a method is missing. gem list shows all gems , i have tried to install gems via bundle

[Rails] need a background task to run 1hour after create

2016-05-26 Thread tom
which toll should i use? my task needs to be run after 1 hour or other time unit afte r the record has been created. thx tom -- 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 e

[Rails] help - building a simple user dashboard

2016-03-24 Thread tom
hi, im trying to find the simplest way of bulding a user dashboard. currentyl using namespace like this: resource :dashboard, to: 'dashboard#index', as: 'dashboard'do resources :vehicles , to: 'vehicles#index' end > controller action is using its own layout file (one yield section),

[Rails] need advise with geokit-rails: finding covering records

2016-02-17 Thread tom
Hi, i have a 'campaign' model which covers a location (=lat/lng +plus radius). i also have an event model, where one event happens at a specific location. now i want to know which campaigns 'covers' and event in terms of the location. any ideas appreciated. thx -- You received this

Re: [Rails] how do i access attriutes when using eager_load has_many

2016-01-27 Thread tom
ok, u r right - i was just frustrated because i was going back and forth between joins , includes etc - here the 'error' undefined method `id' for # p rec.tasks.id On Wed, Jan 27, 2016 at 1:06 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Wed, Jan 27, 2016 at 9:4

[Rails] how do i access attriutes when using eager_load has_many

2016-01-27 Thread tom
Hi this code: x = Project.where('status=?','active').eager_load(:tasks) produces a nice query, in sql everythig is ok, all columns have been alias as t0_r1, but how do i access it? my loops are failing when tryin to access the associates attribute: x =

Re: [Rails] how do i access attriutes when using eager_load has_many

2016-01-27 Thread tom
ecause thats what i saw in the mysql query result pane thx again On Wed, Jan 27, 2016 at 1:09 PM, tom <tomabr...@gmail.com> wrote: > ok, u r right - i was just frustrated because i was going back and forth > between joins , includes etc - here the 'error' > > undefined method

[Rails] cap & rvm - switched from system rvm to user rvm

2015-12-31 Thread tom
hi, i had rvm system wide, but then switched to a user installation, and now im getting this: cap production deploy DEBUG [18852256] Running /usr/bin/env which passenger as administra...@domain.com DEBUG [18852256] Command: ( export RVM_BIN_PATH="~/.rvm/bin" ; /usr/bin/env which passenger )

[Rails] Re: cap & rvm - switched from system rvm to user rvm

2015-12-31 Thread tom
solved - had a doubled entry overriding the user variable On Thu, Dec 31, 2015 at 9:58 AM, tom <tomabr...@gmail.com> wrote: > hi, i had rvm system wide, but then switched to a user installation, and > now im getting this: > > cap production deploy > DEBUG [18852256] Runni

[Rails] help: NoMethodError: undefined method `set' for main:Object during cap deploy

2015-12-22 Thread tom
NoMethodError: undefined method `set' for main:Object /apps/app_a/production/releases/20151222191024/config/environments/production.rb:2:in >>production.rb set :sidekiq_role, :app set :sidekiq_config, "#{current_path}/config/sidekiq.yml" set :sidekiq_env, 'production' set :deploy_to,

[Rails] Re: help: NoMethodError: undefined method `set' for main:Object during cap deploy

2015-12-22 Thread tom
spot on - thx On Tue, Dec 22, 2015 at 2:13 PM, tom <tomabr...@gmail.com> wrote: > NoMethodError: undefined method `set' for main:Object > > > /apps/app_a/production/releases/20151222191024/config/environments/production.rb:2:in > > > > >>production.

Re: [Rails] /bundler/runtime.rb:77:in `require': cannot load such file -- global (LoadError)

2015-12-21 Thread tom
bundle install was working fine. i rolled back so its working again, not sure what happened - so thx again On Sat, Dec 19, 2015 at 4:49 PM, Colin Law <clan...@gmail.com> wrote: > On 19 December 2015 at 21:37, tom <tomabr...@gmail.com> wrote: > > hi collin, > > >

Re: [Rails] /bundler/runtime.rb:77:in `require': cannot load such file -- global (LoadError)

2015-12-19 Thread tom
acks = true end end On Sat, Dec 19, 2015 at 4:57 AM, Colin Law <clan...@gmail.com> wrote: > n 18 December 2015 at 19:58, tom <tomabr...@gmail.com> wrote: > > hi, need help with a rails 4 app: > > > > $ bundle exec rails s -b 0.0.0.0 -p 3001 > > /home/a

[Rails] /bundler/runtime.rb:77:in `require': cannot load such file -- global (LoadError)

2015-12-18 Thread tom
hi, need help with a rails 4 app: $ bundle exec rails s -b 0.0.0.0 -p 3001 /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /home/administrator/.rvm/gems in PATH, mode 042777

Re: [Rails] legacy db - uninitialized constant

2015-11-24 Thread tom
yes thats the console. the file name is called: g_l_entry_vat_entrylink.rb thx On Tue, Nov 24, 2015 at 12:28 PM, Colin Law <clan...@gmail.com> wrote: > On 24 November 2015 at 16:29, tom <tomabr...@gmail.com> wrote: > > hi, im doing a conversion and im stuc

[Rails] legacy db - uninitialized constant

2015-11-24 Thread tom
hi, im doing a conversion and im stuck here: class GLEntryVatEntrylink < ActiveRecord::Base self.table_name = 'G_LEntry-VATEntrylink' end >> 1.9.3-p194 :001 > GLEntryVatEntrylink.all NameError: uninitialized constant GLEntryVatEntrylink from (irb):1 whats wrong here? thx --

[Rails] q: observer

2015-11-19 Thread tom
hi, is this the right thing todo?: class AuditorObserver < ActiveRecord::Observer observe :order, :feedback,:jobapplicant def after_create(record) if record.class.name=="Order" end if record.class.name=="Feedback" end

[Rails] link_to when using STI --> undefined method `animal_path'

2015-10-06 Thread tom
hi, im getting started with STI but having trouble with link_to 1) Model Animal including an type column 2) routes: #resource :animal resources :tiger , :controller => 'animals', type: 'tigler' resources :lion , :controller => 'animals', type: 'lion' 3) index.html link_to 'show', animal

Re: [Rails] link_to when using STI --> undefined method `animal_path'

2015-10-06 Thread tom
its just pseudo-code. but if i leave the base resource in there, then it give me an /animal/id route which i dont want. i want either /tiger/id or lion/id thx On Tue, Oct 6, 2015 at 12:03 PM, Dave Aronson < googlegroups.2.t...@codosaur.us> wrote: > On Tue, Oct 6, 2015 at 11:5

Re: [Rails] link_to when using STI --> undefined method `animal_path'

2015-10-06 Thread tom
, 2015 at 12:13 PM, Dave Aronson < googlegroups.2.t...@codosaur.us> wrote: > On Tue, Oct 6, 2015 at 12:07 PM, tom <tomabr...@gmail.com> wrote: > > > its just pseudo-code. > > > > but if i leave the base resource in there, then it give me an /animal/id > > rou

[Rails] Reset password token is invalid OR Reset password token has expired, please request a new one

2015-10-02 Thread tom
im lost in an update. updated rails 3 to 4 and now stuck with devise... i have updated views and controller code & user.rb, but i dont know where the error comes from...nor do i see the same reset token in the database... any ideas? thx -- You received this message because you are subscribed

Re: [Rails] Beginner level bug in Rails

2015-09-17 Thread Tom Broomfield
I think generally, rails is built for productivity, people sometimes confuse this with it being easy to learn. It isn't, it's very large and solve many different problems. It takes a lot of time to learn the framework, but once you do, you can leverage a lot of the complexity to build things

[Rails] Check out what we've build

2015-08-05 Thread Tom Cooper
Hey there We are dev team building outsource projects. And each time finishing the projects we've had a pain with configuring backups (files and DBs) for our customer's VPS. Honestly, I think that you, guys, Ruby on Rails developers, face the same issue every single day. So while solving this

Re: [Rails] Re: how can i whitelist params when used with constantize?

2015-04-21 Thread tom
hi the problem is my update method: @rec.update(params[:rec].require(@form.sourcetable.singularize.parameterize.underscore.to_sym).permit!) - param not found: employer (@rec is the record to be updated) and here is the params hash: {utf8=✓, _method=patch,

[Rails] how can i whitelist params when used with constantize?

2015-04-20 Thread tom
x = SomeClass.classify.constantize.new(params) how can i get the params whitelisted? thank you! -- 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: ROR software development company in india

2015-03-30 Thread Tom Hardy
I would like to present you two companies which are the best companies for web and application development, and they had a specialized team for Ruby on rails development. Here we go, Sparx IT Solutions http://www.sparxitsolutions.com i...@sparxitsolutions.com CSS Chopper

[Rails] Re: Real time Chat Application Using ROR 4,ruby 2.1.3,Mongodb

2015-03-11 Thread Tom Sheffler
Our platform (SightCall) provides realtime services like text chat, video/audio and data messages. We have a nice Ruby-on-Rails demo of a group collaboration tool. You could use this as a starting point to embed these functions into your own web site.

[Rails] Re: Rails Integrate with Webrtc

2015-03-05 Thread Tom Sheffler
We have a pretty nice Ruby server-side client and I've published a Rails application that is a little group-wise video call and text chat app. It runs on Heroku so you can try it out easily (after you sign up for an account :-) The Rails part is pretty straightforward (User table,

[Rails] question @ ransack

2015-03-02 Thread tom
hi, switching from metasearch to ransack and not sure how to do this: @q = Person.ransack(params[:q]) #filter more @q = @q.id_eq(test) if current_user # how do i make this work? @people = @q.result(distinct: true) -- You received this message because you are subscribed to the Google Groups

[Rails] sending html email w/o template

2015-02-04 Thread tom
hi, i want to send html emails. i have a field containing a full html doc structure and i would like to send that. basically the user brings that and saves it to the db. i have tried various methods, with and without mailer template, also with yield in the template, but i am not getting the user

[Rails] uninitialized constant add_column2::Tier3DiscountGroup

2015-01-19 Thread tom
hi, im getting the error outlined in the subject. this is the migration: add_column :tier_3_discount_groups, :description, :text unless Tier3DiscountGroup.column_names.include?('description') here is the model: filename: tier_3_discount_group.rb content: class Tier3DiscountGroup

[Rails] sql query

2014-12-22 Thread tom
hi i have such a model and im not sure how to get the data out: Task: - project_id - name - timestamp - value (progress) now, an insert always insert multiple rows at the same time, but name has different values and so does 'value' i need a query which gets all tasks for one or more

Re: [Rails] Re: user stores - how to setup in theory

2014-12-12 Thread tom
, 2014 at 10:01 AM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Wed, Dec 10, 2014 at 7:07 PM, tom tomabr...@gmail.com wrote: i have my paypal-keys OK. You've implemented a payment process using those. What in theory is preventing you using that same process with the paypal-keys

[Rails] need help with rails 4 nested routes

2014-12-10 Thread tom
hi i want to accomplish this: forms/:id forms/:id/list (action list) forms/:id/card/:x (action showcard) resources :forms do get 'list', :action = 'list' # ok get 'card/:x' , :action= 'showcard' #, :as = 'card' crash no method defined... end and how would my link_to

[Rails] Re: user stores - how to setup in theory

2014-12-10 Thread tom
anyone? thx On Fri, Dec 5, 2014 at 1:49 PM, tom tomabr...@gmail.com wrote: hi, i have an rails app and users can pay to 'my' paypal account via active merchant. now i want to expand and allow users to have their own store , but im not sure how to deal with the users - store payments

Re: [Rails] Re: user stores - how to setup in theory

2014-12-10 Thread tom
to their paypal or whatever payment gateway url? not sure... On Wed, Dec 10, 2014 at 6:30 PM, Norm Scherer normsche...@earthlink.net wrote: Sounds like an opportunity to blaze a trail! Norm On 12/10/2014 02:57 PM, tom wrote: anyone? thx On Fri, Dec 5, 2014 at 1:49 PM, tom tomabr...@gmail.com

  1   2   3   4   5   6   7   8   9   10   >