[Rails] Re: difficulty making client to server communication with action cable

2019-05-06 Thread robert . phillips37
Thanks for the tips I got it working making sure that at the client I put the send line in the connect function so it didn't try to send before connecting, and I passed in a dictionary object. *app/assets/javascripts/theawpchan.js* App.awpchan.send({message: 'This is a cool chat app.'}); App.

[Rails] difficulty making client to server communication with action cable

2019-04-19 Thread robert . phillips37
I am trying to use action cable. I got the server to send to the client. But I also want the client to send to the server. I tried this in my coffeescript file App.hasdfg = App.cable.subscriptions.create "HasdfgChannel", connected: -> # Called when the subscription is ready for use on th

[Rails] Re: question about using link_to in template and in console

2019-04-19 Thread robert . phillips37
thanks local and ariel -- 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 group, send email to

[Rails] question about using link_to in template and in console

2019-04-15 Thread Robert Phillips
I have a question about using link_to in template and in console Say I do rails new blah, I make a model called User, I make a table users, each user has a field called 'name'. I have resources :users, in config/routes.rb And I add some users. in template, I can do <% @z=User.find_by(name

Re: [Rails] Is it possible to reference welcome#index, in the routes file?

2019-03-08 Thread Robert Phillips
On Friday, 8 March 2019 14:19:01 UTC, Colin Law wrote: > > On Fri, 8 Mar 2019 at 13:05, Robert Phillips > > wrote: > > ... > > I don't mean to sound patronizing > > Not sure you have succeeded in that. > > > ... > > Also you were trying t

Re: [Rails] Is it possible to reference welcome#index, in the routes file?

2019-03-08 Thread Robert Phillips
On Friday, 8 March 2019 13:02:46 UTC, Walter Lee Davis wrote: > > > > On Mar 8, 2019, at 7:40 AM, Colin Law > > wrote: > > > > On Fri, 8 Mar 2019 at 12:19, Robert Phillips > > > wrote: > >> > >> > >> > >> On Frida

Re: [Rails] Is it possible to reference welcome#index, in the routes file?

2019-03-08 Thread Robert Phillips
On Friday, 8 March 2019 12:41:34 UTC, Colin Law wrote: > > > > Have you got a controller called WelcomeController? If not then what > is the name of the controller with method index? > > Colin > You understand that there's a controller I'm trying to reference but that's about it. I don't t

Re: [Rails] Is it possible to reference welcome#index, in the routes file?

2019-03-08 Thread Robert Phillips
On Friday, 8 March 2019 12:07:16 UTC, Colin Law wrote: > > > You can reference any controller/action in the routes. Welcome#index > is no different to any other. Reference it exactly the same way as > you would reference any controller#action. > Would be all lowercase. (as with all controll

[Rails] Is it possible to reference welcome#index, in the routes file?

2019-03-08 Thread Robert Phillips
Is it possible to reference welcome#index, in the routes file? e.g. suppose you create a rails program, so then you do ralsi server you get the welcome page come up. but the routes file is blank. The welcome controller hasn't been referenced explicitly. i'd like to reference it explicitly. Sa

[Rails] Horrible migration path?

2018-08-22 Thread Robert Nicholson
We have a rails application that’s been running on an old version of Rehat 4. We have to move it to Redhat 7 It was apache 2.2.4, ruby 1.8.7, rails 2.3.8, passenger 2.2.5 and we’re expected to migrate to apache 2.4.27, ruby 2.51, rails 5.2.1 and passenger 5.3.4 This application used gems lik

Re: [Rails] Why is id off by one or defined different in edit vs in update?

2018-06-08 Thread Robert Phillips
On Saturday, 9 June 2018 02:43:13 UTC+1, jim wrote: > > > >> @bottle=Bottle.all[params[:id].to_i] #:id==0 >> > > Your error is on these lines. .. > > Yeah I got it now, thanks, I fixed all my actions In the edit action, you should be getting the id of the bottle so you can > find th

Re: [Rails] Why is id off by one or defined different in edit vs in update?

2018-06-08 Thread Robert Phillips
On Friday, 8 June 2018 23:03:51 UTC+1, Hassan Schroeder wrote: > > On Fri, Jun 8, 2018 at 12:54 PM, Robert Phillips > > wrote: > > > def edit > > # http://127.0.0.1:3000/bottles/0/edit :id==0 > > Where in the world are you getting this id of 0

[Rails] Why is id off by one or defined different in edit vs in update?

2018-06-08 Thread Robert Phillips
why is id off by one or defined different in edit vs in update? I will explain what I mean I have a controller called Bottles and a model Bottle My config\routes.rb file has the line- resources :bottles I have this controller class BottlesController < ApplicationController def index end

[Rails] What, if any, partial reload, does creating a table from the rails console do?

2018-03-18 Thread Robert Phillips
What, if any, partial reload, does creating a table from the rails console do? I'll explain what I mean C:\rubytest\proj>rails new abc1 .. C:\rubytest\proj>cd abc1 C:\rubytest\proj\abc1>cd app\models C:\rubytest\proj\abc1\app\models>notepad blah.rb C:\rubytest\proj\abc1\app\m

Re: [Rails] How can I get this create_table statement on one line?

2018-03-18 Thread Robert Phillips
On Sunday, 11 March 2018 14:36:30 UTC, Walter Lee Davis wrote: > > > . > > Here's a multi-line block format migration method: > > create_table :friendly_id_slugs do |t| > t.string :slug, :null => false > t.integer :sluggab

[Rails] Re: Why ApplicationRecord

2018-03-10 Thread Robert Phillips
On Sunday, 11 March 2018 02:39:43 UTC, Robert Phillips wrote: > > On Friday, 9 March 2018 14:58:23 UTC, fugee ohu wrote: > >Why create an ApplicationRecord class inheriting from ActiveRecord::Base > and then have all models inherit from ApplicationRecord instead of >

[Rails] Re: Why ApplicationRecord

2018-03-10 Thread Robert Phillips
On Friday, 9 March 2018 14:58:23 UTC, fugee ohu wrote: >Why create an ApplicationRecord class inheriting from ActiveRecord::Base and then have all models inherit from ApplicationRecord instead of ActiveRecord::Base ? I know a guy that doesn't use rails generate controller or rails generate mod

Re: [Rails] How can I get this create_table statement on one line?

2018-03-10 Thread Robert Phillips
:42 AM, Robert Phillips > > wrote: > > > I can't get a create_table statement onto one line > > > > irb(main):019:0> ActiveRecord::Migration.create_table :wers { |t| > t.string > > :name } > > SyntaxError: (irb):19: syntax error, unexpected &#

[Rails] How can I get this create_table statement on one line?

2018-03-09 Thread Robert Phillips
If I go to rails console I can't get a create_table statement onto one line irb(main):019:0> ActiveRecord::Migration.create_table :wers { |t| t.string :name } SyntaxError: (irb):19: syntax error, unexpected '{', expecting end-of-input Migration.create_table :wers { |t| t.string :name } I can

Re: [Rails] command line erb?

2018-02-25 Thread Robert Phillips
On Sunday, 25 February 2018 18:18:37 UTC, Mauro Locatelli wrote: > > Ok I understand, sorry but I never need a thing such these so I can't help > you. > > Mauro > Yes ok you couldn't help with that but I found the answer eventually, I mentioned it in my post, so it's ok. Thanks.. -- You re

Re: [Rails] command line erb?

2018-02-25 Thread Robert Phillips
February 2018 17:49:07 UTC, Mauro Locatelli wrote: > > rails console? > > Il 25 feb 2018 6:46 PM, "Robert Phillips" > ha scritto: > >> >> >> On Sunday, 25 February 2018 17:29:36 UTC, Hassan Schroeder wrote: >>> >>> On Sun, Feb 25, 2018 at 9:

Re: [Rails] command line erb?

2018-02-25 Thread Robert Phillips
On Sunday, 25 February 2018 17:29:36 UTC, Hassan Schroeder wrote: > > On Sun, Feb 25, 2018 at 9:08 AM, Robert Phillips > > wrote: > > > Is there a command line ERB? > > I suspect you're looking for "irb" -- Interactive Ruby. > No, ERB is not IRB

[Rails] command line erb?

2018-02-25 Thread Robert Phillips
Hi Is there a command line ERB? I've heard of one but if I look for an ERB executable I can't see one I am in windows, I don't know if there is one in linux but not in windows? if perhaps the issue is different distros of ruby , I don't know which distro I have / how to find out. Thanks --

Re: [Rails] trying to reset id from console

2018-02-11 Thread Robert Phillips
On Saturday, 23 December 2017 16:41:57 UTC, Hassan Schroeder wrote: > > On Sat, Dec 23, 2017 at 6:02 AM, Robert Phillips > > wrote: > > As Walter already pointed out, you shouldn't care about the content > of the id field, but ... > > > I get this er

[Rails] Re: I can't set the title of a page no matter what I have tried to put in my .html.erb file

2018-01-17 Thread Robert Phillips
ls.org/layouts_and_rendering.html#using-the-content-for-method > > HTH > John > > > On Saturday, January 13, 2018 at 7:18:23 PM UTC-5, Robert Phillips wrote: >> >> I can't set the title of a page no matter what I have tried to put in my >> .html.erb file

Re: [Rails] I can't set the title of a page no matter what I have tried to put in my .html.erb file

2018-01-13 Thread Robert Phillips
On Sunday, 14 January 2018 00:46:39 UTC, Hassan Schroeder wrote: > > On Sat, Jan 13, 2018 at 4:18 PM, Robert Phillips > > wrote: > > > So, what it is doing is rails is taking its own template then it dumps > my template into its > > Yep, that's the way

[Rails] I can't set the title of a page no matter what I have tried to put in my .html.erb file

2018-01-13 Thread Robert Phillips
I can't set the title of a page no matter what I have tried to put in my .html.erb file >rails new testblah >bundle install <-- not necessary here but anyway. >rails generate controller abc def > rails s I go to http://127.0.0.1:3000 and I see the default template view .\app\views\abc

Re: [Rails] Problem using render text in basic rails application

2018-01-07 Thread Robert Phillips
On Sunday, 7 January 2018 22:34:10 UTC, Phil wrote: > > > render text: is deprecated. Stick with render plain: . > > > Phil > > 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 emai

[Rails] Problem using render text in basic rails application

2018-01-07 Thread Robert Phillips
It works fine as far as this C:\blah>rails new test1 C:\blah\test1>rails server I edit application_controller.rb I add a function called hello def hello render plain: "aasdf" end I edit the routes.rb file I add this line into the existing procedure within routes.rb root 'application#h

[Rails] trying to reset id from console

2017-12-23 Thread Robert Phillips
I've got the program in chapter 2. is there anything i can type in the console to reset the id? I can do e.g. User.delete_all and delete all users, but if a new user is then created it doesn't have an id of 1 'cos the id doesn't reset. this User.reset_primary_key doesn't work either. Notice

[Rails] Redhat and Passenger migration options?

2017-04-27 Thread Robert Nicholson
We have a Rails application that runs via an old Apache using Passenger on an old release of RedHat Linux. What are the logical options to avoid binary compatibility issues when moving to a newer RedHat Linux? -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Rails 5 and Cross-platform Chat Apps (Right tool for the job?)

2017-03-05 Thread Robert
Hi all, I'm looking to create a cross-platform (iOS, Android, Web) chat up for a research interest in linguistics and language (if you're interested: www.twoptzero.co ). I'm sure most experienced developers (ruby/rails enthusiasts or not) agree that you should pick the right tool for the rig

[Rails] Re: Export OST database into Outlook (PST/EML/MSG and HTML)

2016-06-29 Thread Robert Strand
I would like to share with you an another better solution for recover OST file data and convert into PST format.This OST to PST Converter tool which can easily and safely performs to repair inaccessible mailboxes items from Microsoft Exchange Offline.OST file and as well as Convert (Offline Storage

[Rails] Remove passwords from database.yml in rails 2.3.8 application?

2015-11-01 Thread Robert Nicholson
We have a 2.3.8 application that has hard coded passwords in the database.yml file. If we were to use erb to bring these in from a file outside where in the initialization steps do I load the file to populate the variable I wish to interpolate? When I tried to do so in config/environment.rb the

Re: [Rails] Formatting date field in form

2014-12-10 Thread Robert Fitzpatrick
Robert Fitzpatrick wrote: I am new to RoR and trying to update an existing app developed by someone else. I have the following form in a partial file to display for the new and edit actions. I added :value to the program_date field to display only the date of the timestamp field, removing the

[Rails] Formatting date field in form

2014-12-09 Thread Robert Fitzpatrick
Class| How can I apply to only the edit form? Or am I trying to accomplish this in the correct way? Thanks, Robert -- Robert -- Robert -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and s

[Rails] [JOBS] Work remote ok

2014-11-21 Thread Robert Clark
*Our Company* We are a well-funded, ground breaking Social Media platform Company located in the Irvine Spectrum, California and we are growing at lightning speed. We have experience great success at this early stage and as a result we are looking to expand our company! Currently we are looki

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Robert Fitzpatrick wrote: Maybe I missed something earlier in the discussion, but can't you just edit it to: @verbose = true if arg == 'V' Yes, I guess so, and then uncomment all the places in the code where he has #puts if @verbose I'll give it a try, still tryi

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Scott Ribe wrote: On Nov 19, 2014, at 11:12 AM, Robert Fitzpatrick wrote: OK, that's a relief that I can read the code, thanks for clarifying. To get verbosity, I'll need to do a lot of uncommenting and do line-by-line debuggging :-/ Jason mentioned a debugging tool for Rails 2

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Scott Ribe wrote: On Nov 19, 2014, at 10:49 AM, Robert Fitzpatrick wrote: Then the code uses '#puts something if @verbose' throughout. Like I said, I'm new to ruby, but have used Perl and PHP and other languages before, I hope is what is throwing me off is the # are not commen

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
ent, what would be the difference between running a copy of the app under the production or development environment on the development server? Again, thanks a ton for any help and patience, I promise to get up to speed as quickly as possible. -- Robert -- You received this message because you are

Re: [Rails] Rake tasks

2014-11-18 Thread Robert Fitzpatrick
the list of MP3 files it finds. I see the task has a lot of puts when 'ARGV = V', should I be able to run the task with the following command? # rake utils:process_archive V' -- Robert -- You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] Rake tasks

2014-11-18 Thread Robert Fitzpatrick
s: require File.expand_path('../config/application', __FILE__) ::Application.load_tasks Thanks for any help! -- Robert -- 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 em

Re: [Rails] Re: copy app to another server

2014-11-04 Thread Robert Fitzpatrick
hould that be checked and matched as well? -- Robert -- 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

Re: [Rails] Re: copy app to another server

2014-11-03 Thread Robert Fitzpatrick
user owns the app directory I am running this in, is there some other directory git is trying to use? -- Robert -- 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 a

[Rails] copy app to another server

2014-11-03 Thread Robert Fitzpatrick
install ruby via rvm as root, so I do not have an .rvm directory under my home directory as the sudo user. I have /usr/local/share/rvm, but can't find any bundle or gem command in the bin directory under that location. Should I have installed something as a sudo user or should I continue to

Re: [Rails] rails version and copying app

2014-10-30 Thread Robert Fitzpatrick
2.2) rdoc (3.9.5) thread_safe (0.1.2) tzinfo (0.3.37) But again the list in the Gemfile.lock file lists many more. Just trying to get a grasp of where to go from here, what is need to get this copy to run, appreciate any help! -- Robert -- You received this message because you are subscribed t

[Rails] rails version and copying app

2014-10-29 Thread Robert Fitzpatrick
I volunteer for a non-profit with a Ruby on Rails app and they recently lost their web developer. I have done a lot of programming from Perl to PHP and ASP, but never RoR. I've become somewhat familiar and been able to track down and make some cosmetic changes to some of the apps web pages, but

[Rails] Re: [Feature idea] Truncating timestamp precision

2014-10-06 Thread Robert Walker
Agis A. wrote in post #1159152: > Of course I can. I wanted to know if this seems useful to other people > using Rails so I can start to work on this feature. This doesn't feel to me like the sort of feature that warrants inclusion in ActiveSupport. There are a multitude of possible functions sim

Re: [Rails] Web Server Error

2014-09-19 Thread Robert Thau
Colin Law writes: > On 19 September 2014 04:54, Rohan Sarker wrote: > > Unfortunately I need to start Web Server in Windows 7. Please let me know > > if > > you have any solution for Windows 7. > > No, I have no solution for that, whether you will find a solution I do > not know. Very fe

[Rails] Re: Multiple domains

2014-08-20 Thread Robert Walker
http://api.rubyonrails.org/classes/ActionDispatch/Request.html#method-i-original_url # get "/articles?page=2" request.original_url # => "http://www.example.com/articles?page=2"; -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Grou

[Rails] Re: SyntaxError on has_many association with block when trying to order

2014-08-18 Thread Robert Walker
Antonio Moreno wrote in post #1155440: > Now, I want to order the associated records: > > has_many :children, dependent: :destroy, -> { order 'id asc' } do > > but this raises an error: > > SyntaxError in ParentsController#index > has_many :children, dependent: :destroy, -> { order 'id asc' } do

[Rails] Re: What is the question mark inside this regex doing?

2014-08-14 Thread Robert Walker
'John Merlino' via Ruby on Rails: Talk wrote in post #1155178: > I thought the ? matches zero or one occurrence of a pattern. However in > this example: > > def show_regexp(string, pattern) > match = pattern.match(string) > if match > "#{match.pre_match}->#{match[0]}<-#{match.post_match}" >

[Rails] Re: custom button. How to do this ?

2014-08-12 Thread Robert Walker
Roelof Wobben wrote in post #1154953: > For my project I need a button which produces this in html ; > > Submit > > I tried already and but also that did not > produce the output as I expected. The button_tag signature: button_tag(content_or_options = nil, options = nil, &block) button_tag("Su

[Rails] Re: Where do I place the javascript file that is only required for one (or just a few) view(s)?

2014-08-07 Thread Robert Walker
unknown wrote in post #1154022: > Hi all, > > Sorry if this has already been discussed, but I haven't found any post > matching what I'm looking for. (If there is, please point me to it!) > > I'd like to include a javascript in the header section, but just for one > view. I went through the guide

[Rails] Re: How increase efficiency in develop

2014-08-05 Thread Robert Walker
Alex Korolev wrote in post #1154236: > Hello. > > May you share your approach to increase efficiency. > I can do a application on Ror but often I must remind information in > help. > So my speed is very low. > Do you have some tricks or I must write more code (more projects) and > remember all? >

[Rails] Re: Executing ruby script before rails gets loaded

2014-08-04 Thread Robert Walker
Martin Ennemoser wrote in post #1154169: > I have a ruby script which instruments Net::HTTP requests in Rails > applications. This works as follows: When Ruby loads the Net::HTTP > class, I > alias the request method. At every http request, my instrumented method > gets executed. So that this works

[Rails] Re: Session record not getting deleted

2014-08-04 Thread Robert Walker
Bharath Neo wrote in post #1154181: > Hi, > I have been asking this question in multiple forums like stackexchange > but have not received a solution or proper help. Any help here is > appreciated. > > I have a rails app with a session store database (mysql). When I want to > clear a session, I res

[Rails] Re: Javascript call in mail Url

2014-07-31 Thread Robert Walker
Walter Davis wrote in post #1153927: > On Jul 31, 2014, at 8:47 AM, Colin Law wrote: > Also, if you expect a JavaScript to execute in a mail client (Outlook, > Gmail, Mail.app) you will be waiting a very long time. That door is > bolted securely shut for very good reason. If I'm not mistaken this

[Rails] Re: Your opinion on which technologies to use when building web applications

2014-07-25 Thread Robert Walker
Master Thesis Sqore wrote in post #1153331: > Hi guys, > > I guess most of you usually click ignore when you see an email asking > for a > survey. I couldn't find the "ignore" button so I guess I'll drop by two cents opinion... > Yes, we are doing a survey as well, but very differently :) We are

[Rails] Re: Regarding fetching the polygon data from google map and save in postgis

2014-07-21 Thread Robert Walker
Logesh m wrote in post #1152814: > I have a requirement where I would need to create a geo fence and for > that > I have used the google map and the drawing tools and I could create a > polygon using the drawing tool but I am not sure on how to save the data > in > postgis and I saw about rgeo but

[Rails] Re: Nested Iterator

2014-07-15 Thread Robert Walker
Jan Yo wrote in post #1152468: > Is there a more compact way to do a nested each ? > > value.each do |x| > x.data.each do |y| > puts 'x: ' + x + ' y: ' + y > end > end > > That is can this be reduced to one or two lines? value.each { |x| x.data.each { |y| puts 'x: ' + x + ' y: ' + y } } T

[Rails] Re: Difference between Cookies and Sessions

2014-07-07 Thread Robert Walker
Praveen BK wrote in post #1151760: > Hello, > > Can anybody please define cookies and sessions and their > differences in detail with reference to rails. What may be confusing you, that I've not seen mentioned yet, is that session identifiers are stored in cookies. Let me explain by looking

[Rails] Re: Best scalable database

2014-07-01 Thread Robert Walker
Tudor Cojocaru wrote in post #1151044: > I was wondering which is the best database in terms of scalability and > also which core nosql system is the best (Document Store - Graph > Database) This is like asking which car is the best. You ask 5 people and you'll get a least 4 different answers alo

[Rails] Re: Execute as a service

2014-06-26 Thread Robert Walker
Josu Lazkano wrote in post #1150848: > Thanks! > > I execute as daemon (rails server -d), and it works well. > > I read about Passenger, it looks really interesting. I actually use Passenger standalone for development and Passenger on the server for deployment. Works great for me. I don't, howev

[Rails] Re: What is a good practice for storing additional classes

2014-06-26 Thread Robert Walker
Ronald Fischer wrote in post #1150799: > My Rails application also contains classes which are independent from > the Rails framework, in that they could be reused unchanged if I would, > for example, created a non-web-based, command-line version of my app. > Such a class could be one which impleme

[Rails] Re: Pass a ruby variable into js within Rails

2014-05-29 Thread Robert Walker
Pierre-Andre M. wrote in post #1147586: > I have a variable created by some ruby in my controller that looks like > this: > > @begpoint = row["begpoint"] > > > and I want to pass it into some js that is referenced from within my > view: There are several way of doing this, but the simplest is to u

[Rails] Re: Ticketing Gem in Rails

2014-05-22 Thread Robert Walker
Ankur Kumar wrote in post #1146768: > I am looking for details about any simple ticketing gem which can do > following: > > -Track received and sent notifications between two entities > -Assign status - (open/closed/resolved) etc to these notifications > -Update existing ticket status with follow u

[Rails] Re: 'rails generate scaffold' is adding an 's'

2014-05-18 Thread Robert Walker
Gerald Vim wrote in post #1146378: > Using Rails 4.1.1 this command: > > rails g scaffold Main home contact events about > > generates: > > app/controllers/mains_controller.rb > > Why has 's' been appended? This didn't happen with 4.1.0. Did you mean "rails g controller main home contact even

[Rails] Re: NeedHELPASAP

2014-05-13 Thread Robert Walker
Joener Preagola wrote in post #1145843: > Im not familiar on dependency injection > > Remove Car's explicit reference to Engine by using dependency injection. The first question to ask yourself is, "Why is it important to use dependency injection in this specific scenario?" After all this is Rub

[Rails] Re: Re: Re: How to see .gitignore file in directory?

2014-05-11 Thread Robert Wolf
Colin Law wrote in post #1140679: > On 23 March 2014 10:08, Jaimin Pandya wrote: >> Sorry for asking this question in rails. I am using ubuntu operating >> system. >> >> Thank you very much for your help. > > In Nautilus (the file explorer) Ctrl+h will show/hide hidden files, or > you can show the

[Rails] Re: convert json string to hash

2014-05-08 Thread Robert Walker
prabhu wrote in post #1145452: > I have a string object which is basically in a json format and while > trying to print it shows in console as > > > item = > { > "id": "4c9f83e4-f479-48d0-9f92-3fff70a8f6ba", > "item": > "{"business":"1114","class":"Demo","date":"0

[Rails] Re: Ability for users to insert images into text area

2014-04-28 Thread Robert Walker
Colin Mr. wrote in post #1144182: > So like many other beginners in Rails I'm following along to Michael > Hartl's tutorial. I'm nearing the end, and I'm thinking I would like to > implement the ability for users (in the social network) to upload pics > along with their comments and maybe even add

[Rails] Re: Asset Pipeline without SCSS?

2014-04-24 Thread Robert Walker
Walter Davis wrote in post #1143688: > Is it possible to configure Rails through a .railsrc directive to not > use SCSS, but still use the asset pipeline and Sprockets? I know that I > can rename the files manually, and it does work (the files are > concatenated and minified without issue), but I'd

[Rails] [JOBS] RoR Position in Maryland.

2014-04-23 Thread Robert Decker
I am in search of a few RoR Developers for a client in Maryland, just outside the beltway. The right person for this will have between 3 and 5 years experience. My client is only able to work with citizens and those with green cards at this time. You won't believe the awesome perks they offer.

[Rails] Re: What's going to explode.

2014-04-23 Thread Robert Walker
Walter Davis wrote in post #1143883: > ...if I just bump Rails from 4.0.4 to 4.1? How dramatic a jump is this > update? My guess is probably not much if you follow this guide: http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#upgrading-from-rails-4-0-to-rails-4-1 -- Posted via http://w

[Rails] Re: Social Network in RoR

2014-04-18 Thread Robert Walker
Juan Gutiérrez Ortega wrote in post #1143438: > For this slide and article: > > https://engineering.groupon.com/2013/misc/i-tier-dismantling-the-monoliths/ "In general the single app architecture is the problem, not the language/runtime/web framework. I’m sure there are ways that we could have

[Rails] Re: Database strong structure change: migrations

2014-04-16 Thread Robert Walker
Martin wrote in post #1143301: > Hi there, > > I have some major structure change issues with an ruby on rails > application, and I'd like to ask you about how i can handle that. I > will > make some dummy problems for you to show what i want to reach: > > 1. Having a Client model with first_name

[Rails] Re: Configure restful web service in rails

2014-04-16 Thread Robert Walker
Colin Law wrote in post #1143272: > On 16 April 2014 13:34, prabhu wrote: >> Hi, >> >> I am trying to create a Rest web service in my rails application. I need to >> configure urls for it as below. >> >> >> localhost:3000/book/book_id/new/param1/param2/param3/param4/... > > That might be bette

[Rails] Re: Push user.id to another Controller

2014-04-15 Thread Robert Walker
Alfredo Barrero wrote in post #1143117: > Good morning everyone, > > I have a question, if anyone can answer it would be great. I'm trying to > send the user.id from the "users/show.html.erb" to > "photos_controller.rb", > but I'm not sure how to do it. I can send the user information to the > Mode

[Rails] Re: TextArea Parameter

2014-04-07 Thread Robert Walker
Robert Walker wrote in post #1142180: > The documentation contains your answer: > > http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-text_area In case you didn't get that here's an example: <%= f.text_area :description, { id: "my_descript

[Rails] Re: TextArea Parameter

2014-04-07 Thread Robert Walker
The documentation contains your answer: http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-text_area -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe f

[Rails] Re: How to add funtionalities to images

2014-04-04 Thread Robert Walker
Elton Yau wrote in post #1142007: > Hi Guys, > > So my friend drew an image of a form and passed it to me as a PNG file. > I > have placed those images on my site (as shown in attached image). How > do i > add functionalities to these images (more specifically, i want to make > buttons and also cr

[Rails] Re: Dependency Management

2014-03-26 Thread Robert Walker
Matthew Riley wrote in post #1141041: > I understand the code is not specific to Rails, however I am > specifically > interested in Rails developer’s perspective. Thanks! Perspective on what? As you demonstrate, Dependency Injection (DI) is a really simple concept, with a really simple implementa

[Rails] Re: beginner to ruby programming

2014-03-26 Thread Robert Walker
Jaya Ruhil wrote in post #1141029: > hi every one , > i am beginner to ruby, i don't know a little bit of ruby, but i have to > learn it bcz i m going to work as a system admin , and for client server > automation using puppet i required concept of ruby, can any body help in > in directing me , tow

[Rails] Re: Why does calling .delete_all on has_many relationship nullifies foreign keys.

2014-02-19 Thread Robert Walker
unknown wrote in post #1137005: > Yes I know I can set :dependant => :delete_all > > but what's resoning behind this default behaviour? Is it just a legacy > stuff? > anyone knows why the default behaviour here is to nullify keys? Actually, the Rails documentation explains this rather clearly, so

[Rails] Re: I failed in C language , what about ruby on rails?

2014-02-18 Thread Robert Walker
haytham agbariah wrote in post #1137023: > Hello , I tried to learn C language , I failed twice in the C > course(because of Binary trees) .. > I believe that ruby on rails is the future , Should I give up on > programming ? or there is no connection between Failing in C and > Succession > in ruby

[Rails] Re: Rails where clause help

2014-02-18 Thread Robert Walker
Robert Walker wrote in post #1137051: > @users.where({ name: @request.requester, name: > @request.regional_sales_mgr }).all > > Just note that this would never return any results since "name" can only > have one value at a time. Except in the case

[Rails] Re: Rails where clause help

2014-02-18 Thread Robert Walker
Arup Rakshit wrote in post #1137044: > Hi, > > I found one answer from - http://stackoverflow.com/a/20198450/2767755 > > @users = User.where(name: [@request.requester, > @request.regional_sales_mgr]).all > > Here @users will be having all those users, whose names are either > `@request.requester` o

[Rails] Re: Help Installing rbenv?

2014-02-12 Thread Robert Walker
John Weiss wrote in post #1136424: > http://s19.postimg.org/ss009x84z/term.png Did you also install ruby-build? rbenv does not come with the rbenv install command by default. rbenv itself is just a Ruby environment manager, and not an Ruby compile and install manage. That's what the ruby-build

[Rails] Re: Can two Rails versions use one database?

2014-02-05 Thread Robert Walker
Russ Dast wrote in post #1135683: > Thanks Walter and Jim for your feedback. The Railsconf talk was indeed > informative, although we are still leaning against an upgrade path and > are > more likely to choose a rewrite-based approach. Jim, I hadn't thought > about > the flash, so thanks for pointi

[Rails] Re: Ruby on Rails based Web IDE

2014-01-27 Thread Robert Walker
Oleksii Zaitsev wrote in post #1134538: > I am going to create Ruby on Rails application that works like minimal > web > based IDE. > > I want to implement several components: > >1. Web terminal to interact with local unix machine. >2. Tree view file navigation. >3. Text editor with syn

[Rails] Re: Private Message System Rails 4

2014-01-11 Thread Robert Jewell
Robert Jewell wrote in post #1132839: > Hi Walter, per your request, here's a gist of my users_controller, which > corresponds with the form's view: > https://gist.github.com/rjewell2200/8364397 > It looks like I found the problem. I needed to add the fol

[Rails] Re: Private Message System Rails 4

2014-01-11 Thread Robert Jewell
Walter Davis wrote in post #1132809: > On Jan 10, 2014, at 6:13 PM, Robert Jewell wrote: > > It might be instructional for you to post the controller that handles > this form, I don't see anything wrong here, except unless you are adding > the sender_uid in that controller,

[Rails] Re: Private Message System Rails 4

2014-01-10 Thread Robert Jewell
Hey Walter, Your advice is really solid, and I appreciate it a lot. Thank you for pointing out the note about pluralization. I fixed it accordingly. However, I not follow you so well here: > On Jan 9, 2014, at 10:55 AM, Robert Jewell wrote: > This would be the proper inverse of the pr

[Rails] Re: Rails 4 and Ruby 2 on Windows 8.1

2014-01-09 Thread Robert Walker
Eastside Developer wrote in post #1132713: > Has anyone been able to do this successfully? and what's the best > equivalent to RVM in the Windows world? Why would you want to? Throw a Linux VM on there and go to town with Rails. P.S. I know there are some extreme circumstances where this is simp

[Rails] Re: Private Message System Rails 4

2014-01-09 Thread Robert Jewell
Sorry, just an edit for the code in the User model: belongs_to :sender, foreign_key: 'sender_uid', class_name: 'User' belongs_to :receiver, foreign_key: 'receiver_uid', class_name: 'User' Robert Jewell wrote in post #1132668: > Or in my User model,

[Rails] Re: Private Message System Rails 4

2014-01-09 Thread Robert Jewell
Hi Walter, First, thank you for your reply and for your explanation of what UID means. In my app I have the following table for private messages: create_table "private_messages", force: true do |t| t.integer "sender_uid" t.integer "receiver_uid" t.text "subject" t.text

[Rails] Private Message System Rails 4

2014-01-09 Thread Robert Jewell
Hi All, I am trying to build a private message system on rails 4. I found a great post here, http://stackoverflow.com/questions/8405457/rails-threaded-private-messaging, on stackover flow, but it is unclear to me what the tables should look like. Does anyone have any suggestions with regards to bu

[Rails] Re: Working with JavaScript

2014-01-06 Thread Robert Walker
James Turley wrote in post #1132300: > 2) Use JQuery or a similar library (JQuery is in your standard Rails > project gemfile) to add a listener. It would be something like this: As you might have guessed option 2) is the RIGHT option (as opposed to the, "It may be ugly but it works!" option").

  1   2   3   4   5   6   7   8   9   10   >