Ruby on Rails Sunday, March 26, 2017

On Sun, Mar 26, 2017 at 4:28 PM, Raina Millay <rmmillay@gmail.com> wrote:
> I edited the file in Atom, and yes I closed out Atom and opened it back up
> again after I edited it.

That has nothing to do with the question: did you *restart* the rails
server after editing the config/database.yml file?

> I just started, I don't have the console set up yet because I haven't been
> able to get past this step.

There's nothing to "set up" - it's built in; "rails console" is the command
to run. Try it and see if you can access your ActiveRecord models.

Or alternatively, "rails dbconsole" should give you direct access to the
DB command line.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yA-HxYiS7_fidqF3Se0U%3DzA_UKz5__NVWO1bti4UasQVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

sorry, and I tried again on the server.

On Sunday, March 26, 2017 at 3:06:48 PM UTC-7, Hassan Schroeder wrote:
On Sun, Mar 26, 2017 at 3:00 PM, Raina Millay <rmmi...@gmail.com> wrote:
> Well it says the right password and everything on the file... it didn't at
> first, but then I edited it...

Did you restart the server *after* you edited that file? Can you start
up a Rails console and access the DB from there?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bd6c6ad6-de7e-4980-8b99-3299d8c870c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

I edited the file in Atom, and yes I closed out Atom and opened it back up again after I edited it.
I just started, I don't have the console set up yet because I haven't been able to get past this step.

On Sunday, March 26, 2017 at 3:06:48 PM UTC-7, Hassan Schroeder wrote:
On Sun, Mar 26, 2017 at 3:00 PM, Raina Millay <rmmi...@gmail.com> wrote:
> Well it says the right password and everything on the file... it didn't at
> first, but then I edited it...

Did you restart the server *after* you edited that file? Can you start
up a Rails console and access the DB from there?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cd9ff3d2-1566-4793-90a0-d59895211901%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Sun, Mar 26, 2017 at 3:00 PM, Raina Millay <rmmillay@gmail.com> wrote:
> Well it says the right password and everything on the file... it didn't at
> first, but then I edited it...

Did you restart the server *after* you edited that file? Can you start
up a Rails console and access the DB from there?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBitis_G5o0yN%2BnVvwzFbttUFAPqpKEmL-5N_%2B4%3DY-M8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Well it says the right password and everything on the file... it didn't at first, but then I edited it... do I need to edit it somewhere else too?

On Sunday, March 26, 2017 at 2:46:50 PM UTC-7, Hassan Schroeder wrote:
On Sun, Mar 26, 2017 at 2:24 PM, Raina Millay <rmmi...@gmail.com> wrote:
> First it says this:
>
> => Booting Puma

OK, so Puma is actually working just fine...

> Access denied for user 'root'@'localhost' (using password: NO)

...but it appears you don't have your app configured properly to
access your database. Check your app's config/database.yml

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a80965ce-5c48-4780-9cf1-49216601a51c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Sun, Mar 26, 2017 at 2:24 PM, Raina Millay <rmmillay@gmail.com> wrote:
> First it says this:
>
> => Booting Puma

OK, so Puma is actually working just fine...

> Access denied for user 'root'@'localhost' (using password: NO)

...but it appears you don't have your app configured properly to
access your database. Check your app's config/database.yml

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBxnVrs6yQygO9AZGV4JWhCTvJT9vX%3DgHAdt731%3D3kwHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

First it says this:

=> Booting Puma
=> Rails 5.0.2 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
*** SIGUSR2 not implemented, signal based restart unavailable!
*** SIGUSR1 not implemented, signal based restart unavailable!
*** SIGHUP not implemented, signal based logs reopening unavailable!
Puma starting in single mode...
* Version 3.8.2 (ruby 2.3.3-p222), codename: Sassy Salamander
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000
Use Ctrl-C to stop

Then when I try to go to the webpage it says this both on the webpage and command prompt, plus a whole bunch of stuff too long to paste:

Access denied for user 'root'@'localhost' (using password: NO)



On Saturday, March 25, 2017 at 1:17:14 AM UTC-7, Colin Law wrote:
On 25 March 2017 at 02:40, Raina Millay <rmmi...@gmail.com> wrote:
> It's driving me crazy because i'm new to programming and I can't find help
> for this anywhere... I have windows 7 and when I try to pull up the
> localhost3000 after I put "Rails Server" in the command, it just has errors
> on the webpage, and then on the command prompt. I can't figure out where I
> went wrong... PLEASE HELP!!

To hope for help with that limited information is pointless.
Copy/paste the output shown in the terminal here so we can see what
the problem is (not a screen shot please, copy/paste the text. However
running Rails on Windows is fraught with problems and if it is a
Windows issue you may have trouble finding anyone who can help. My
advice is to run Rails in a Linux system such as Ubuntu or on a Mac.
You can dual boot your machine with Ubuntu/Windows or run Ubuntu in a
Virtual Machine inside Windows (or run Win in a VM inside Ubuntu).

Note that it is localhost:3000 not localhost3000, but I suppose that
may be a typo.

Colin

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/147b9c4c-4aba-41bf-8857-63bc357a78e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Saturday, March 25, 2017

Remove gem 'slim-rails' from your Gemfile and run bundle install.



пятница, 24 марта 2017 г., 17:11:01 UTC+3 пользователь fugee ohu написал:
I created an app without ever invoking `rails new ...` because i copied and pasted another app to begin building the app Now when I run the generator it generates slim templates How do I make it generate ordinary html.erb templates instead?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7e613fd0-21df-4e8b-9e59-44faee6a6517%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On 25 March 2017 at 02:40, Raina Millay <rmmillay@gmail.com> wrote:
> It's driving me crazy because i'm new to programming and I can't find help
> for this anywhere... I have windows 7 and when I try to pull up the
> localhost3000 after I put "Rails Server" in the command, it just has errors
> on the webpage, and then on the command prompt. I can't figure out where I
> went wrong... PLEASE HELP!!

To hope for help with that limited information is pointless.
Copy/paste the output shown in the terminal here so we can see what
the problem is (not a screen shot please, copy/paste the text. However
running Rails on Windows is fraught with problems and if it is a
Windows issue you may have trouble finding anyone who can help. My
advice is to run Rails in a Linux system such as Ubuntu or on a Mac.
You can dual boot your machine with Ubuntu/Windows or run Ubuntu in a
Virtual Machine inside Windows (or run Win in a VM inside Ubuntu).

Note that it is localhost:3000 not localhost3000, but I suppose that
may be a typo.

Colin

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuq8gKjniDEy5ZdxbKD%3DK7zo%3Da1XX1o6cXOPvMSH0AEfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Friday, March 24, 2017

It's driving me crazy because i'm new to programming and I can't find help for this anywhere... I have windows 7 and when I try to pull up the localhost3000 after I put "Rails Server" in the command, it just has errors on the webpage, and then on the command prompt. I can't figure out where I went wrong... PLEASE HELP!!

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a1c6216c-a0c6-4712-ae4d-26c5e8ff570b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi there!

In my project I have a few engines. Each engine has its own set of Mailers and templates.

I want to have Previews for each specific engine, and keep them in engines.

I've found that ActionMailer Preview provides a way to change a path to preview classes, but looks like it's impossible to use an array of paths, or use something like `prepand_view_path / append_view_path ` like we can do in controllers.

https://github.com/rails/rails/blob/3faf7485623da55215d6d7f3dcb2eed92c59c699/actionmailer/lib/action_mailer/preview.rb#L92

Is there any way to have multiple paths for ActionMailer Preview?

Is it possible to create some kind of monkey patch to implement it?

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 emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b41624e5-ff1c-47b2-b6aa-931e8a931081%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

I created an app without ever invoking `rails new ...` because i copied and pasted another app to begin building the app Now when I run the generator it generates slim templates How do I make it generate ordinary html.erb templates instead?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/423738d5-9ae7-4816-a398-c80bbf1ceb2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Thursday, March 23, 2017

I think that I will try to sharpen my Rails Skills.
Then I think I will need to learn after Rails also Rspec, PostgreSQL, Caching with Apache or Nginx (Server) and Database(Redis), Deploying with Capistrano, API's then I  will do Ember.js...

Maybe this could be a good plan...

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f0085fee-6b50-4836-9ff7-c6d64a087faa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Of all the JS frameworks ember seems to be the best. It brings out consistent code practice from the team that uses it, it has great culture and community too.

Personally I have always favored using Rails. Till this day I am able to get away using what Rails offers. It would be nice if I can code completely in Ruby thus avoiding Javascript, but neither do frameworks like Volt, nor opal-rails has really matured and have a decent community. I am stuck with coffeescript.

Yes try out ember, but if it takes time to implement feature, you must make a choice to go ahead with Rails or Rails + some framework.


On Thu, Mar 23, 2017 at 12:33 AM, fabrizio bertoglio <fabrizio.bertoglio@gmail.com> wrote:
Hello Experts,

I have been developing with Ruby on Rails for 4 months and I just finished my first app (the link below).
For my next app I thought about using the open source project Discourse that uses a lot of Ember.js for the App and Ruby on Rails as backend API, but I am skeptic about this as I really LIKE Ruby on Rails, I would like to work on the Backend and I have some Angular, Jquery, HTML, CSS skills that I would like to sharpen, while learning also SQL and some Backend staff..

My question is if Ember.js is really useful, as when a JS Framework is used in developing a Ruby on Rails App, ofter we are speaking of a team of developers and consequently some will be taking care of Front End while other Back End. I would like to be in the Backend team, so I think that the best approach for developing my Apps for now is only using Ruby on Rails, but I am a noob and I would like to receive some advise.

https://barteringapps.herokuapp.com/

Thanks a lot
Fabrizio Bertoglio

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a47d7c95-77d7-49dc-ace7-8be68e2935bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJR%2B9kYbhreZa%2BsUZW0610jK0AAG-xeN0gf1tBtdC1mgS4_-dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Thanks a log, I don't think so (about your Apps)..
What do you think about using Javascript Frameworks with Ruby on Rails apps?

Thanks
Fabrizio

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/53eee551-4302-40c9-8c63-8327133d8a70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Thanks a lot! I don't think so (about your apps)! What do you think about using JS frameworks with Rails?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAN53mjN783bjyoYKRqAq%2BzmzFJ8G%2BaX6jAmN0MuXZ07sOXu0cA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Wednesday, March 22, 2017

Wow. Very nice. My rails app looks ugly.

On Mar 22, 2017 3:03 PM, "fabrizio bertoglio" <fabrizio.bertoglio@gmail.com> wrote:
Hello Experts,

I have been developing with Ruby on Rails for 4 months and I just finished my first app (the link below).
For my next app I thought about using the open source project Discourse that uses a lot of Ember.js for the App and Ruby on Rails as backend API, but I am skeptic about this as I really LIKE Ruby on Rails, I would like to work on the Backend and I have some Angular, Jquery, HTML, CSS skills that I would like to sharpen, while learning also SQL and some Backend staff..

My question is if Ember.js is really useful, as when a JS Framework is used in developing a Ruby on Rails App, ofter we are speaking of a team of developers and consequently some will be taking care of Front End while other Back End. I would like to be in the Backend team, so I think that the best approach for developing my Apps for now is only using Ruby on Rails, but I am a noob and I would like to receive some advise.

https://barteringapps.herokuapp.com/

Thanks a lot
Fabrizio Bertoglio

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a47d7c95-77d7-49dc-ace7-8be68e2935bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAOFgAMn%3DWt1%2B7vi95oxPbMXKgPq-oGe4M576OyLwjJGpKf4OUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hello Experts,

I have been developing with Ruby on Rails for 4 months and I just finished my first app (the link below).
For my next app I thought about using the open source project Discourse that uses a lot of Ember.js for the App and Ruby on Rails as backend API, but I am skeptic about this as I really LIKE Ruby on Rails, I would like to work on the Backend and I have some Angular, Jquery, HTML, CSS skills that I would like to sharpen, while learning also SQL and some Backend staff..

My question is if Ember.js is really useful, as when a JS Framework is used in developing a Ruby on Rails App, ofter we are speaking of a team of developers and consequently some will be taking care of Front End while other Back End. I would like to be in the Backend team, so I think that the best approach for developing my Apps for now is only using Ruby on Rails, but I am a noob and I would like to receive some advise.

https://barteringapps.herokuapp.com/

Thanks a lot
Fabrizio Bertoglio

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a47d7c95-77d7-49dc-ace7-8be68e2935bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

People,

I run a RoundCubeMail Webmail server on Fedora 25 x86_64 and this works
out very nicely for me wherever I am using a desktop computer with large
screen but the Android RoundCubeMail app is terrible and other mail apps
are no good for various reasons. I am think of building a really simple
Rails Webmail client - just to read mail in the INBOX initially - and if
that works out OK - enhancing the client to:

- read other Maildir folders

then:

- add a reply / forward mail option

then:

- add other features in priority order

I was thinking the display of messages would be really simple ie just
Subject buttons of the mails in a list on the web page which would open
the mail for reading on clicking / pressing.

Also, that some RAM-based DB could be used for storing the messages read
in a folder - which would just disappear on logout or get recreated on
changing folders.

Do people think this viable / worth doing? Is there a simpler solution?
If it is worth doing, I would just put the code up on GitLab to try and
get some other people interested in further development.

Thanks,

Phil.
--
Philip Rhoades

PO Box 896
Cowra NSW 2794
Australia
E-mail: phil@pricom.com.au

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/276241035447da87fa99ebd1c3498a95%40pricom.com.au.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Tuesday, March 21, 2017

Hello,

I have never found a good solution for the following problem. I have the usual structure:

resources :contents

namespace :admin do
  resources :contents
end

When I call content_path(content) I want the id to be the slug of the content, while when I call admin_content_path(content) I want the id to be the id of the content. I just want the id not to be related on the model (actually the id is the returning value of the to_param method of the model), but on the route.

I know I can write admin_content_path(id: content.id) or content_path(id: content.slug), but this is just an hack actually. Also, this is especially annoying in form_for, since I can't write

form_for @content

but I'm forced to use

form_for @content, url: @content.new_record? ? admin_contents_path : admin_contents_path(id: @content.id)


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b76a4010-1cd8-432c-ac7b-7cf508cb7c33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Tue, Mar 21, 2017 at 6:50 AM, Hongli Lai <hongli@phusion.nl> wrote:
> Sorry about that Hassan. I can't change it to multiple selections
> anymore because people have already filled in the survey. But that
> question is meant to ask what your *main* app server is. If you really
> have multiple ones that are just as important, then you could select
> "Other" and simply fill in all possibilities.
>
> Does this address your concern?

Not really. One bad question means there are probably more, and
essentially you'll be getting what you asked for, NOT what you need
to know.

My point is that writing actually useful survey questions is non-trivial,
and one of the major problems is writing them from the surveyor's,
rather than surveyee's, perspective.

You care deeply about *the* app server because that's your focus,
and that's understandable. For people working with complex legacy
codebases and infrastructure, things are rarely so cut-and-dried.

And to be honest "application delivery and operations" is a serious
pain point for me right now for reasons 😀 but I don't see the specific
app servers in use being a significant part of that.

Regardless, best of luck,

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAeBpUTs0-Db0LYjXGkp-ThcFM3LkSqunHDqbAGMuYNpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Sorry about that Hassan. I can't change it to multiple selections
anymore because people have already filled in the survey. But that
question is meant to ask what your *main* app server is. If you really
have multiple ones that are just as important, then you could select
"Other" and simply fill in all possibilities.

Does this address your concern?

On Tue, Mar 21, 2017 at 2:44 PM, Hassan Schroeder
<hassan.schroeder@gmail.com> wrote:
> On Tue, Mar 21, 2017 at 6:18 AM, Hongli Lai <honglilai@gmail.com> wrote:
>
>> But we can't do it without your help. Please give us your feedback. Don't
>> worry, it will take less than 5 minutes.
>>
>> https://phusion.typeform.com/to/Nih9Un
>
> My Rule of Surveys is "happy to help until I get to a poorly crafted
> question that I can't answer" which in this case was something like
> "what app server do you use?" which only allows a single answer.
>
> Nope.
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> twitter: @hassan
> Consulting Availability : Silicon Valley or remote
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/FzaB89MEgvA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBnqfa0E%2BtrP38Oi-E3G3_wiNhbkmTO7JOdYX66hGXBiQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



--
Phusion B.V. | Web Application deployment, scaling, and monitoring solutions

Web: http://www.phusion.nl/
E-mail
: info@phusion.nl
Chamber of commerce no: 63501007 (The Netherlands)

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAM3ce8HDjLcE7JE8uEKFuVYmecDkgRfKd6AH5%2BUBapkq_tR-5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Tue, Mar 21, 2017 at 6:18 AM, Hongli Lai <honglilai@gmail.com> wrote:

> But we can't do it without your help. Please give us your feedback. Don't
> worry, it will take less than 5 minutes.
>
> https://phusion.typeform.com/to/Nih9Un

My Rule of Surveys is "happy to help until I get to a poorly crafted
question that I can't answer" which in this case was something like
"what app server do you use?" which only allows a single answer.

Nope.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBnqfa0E%2BtrP38Oi-E3G3_wiNhbkmTO7JOdYX66hGXBiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi everyone,

I am Hongli Lai, developer of the Phusion Passenger app server. We think the state of Ruby application delivery & operations can be made easier, faster, more reliable, and better. So we've embarked on a mission to do precisely just this (and to improve Passenger too).

But we can't do it without your help. Please give us your feedback. Don't worry, it will take less than 5 minutes.

https://phusion.typeform.com/to/Nih9Un

We are looking forward to hear from you!

Best regards,

Hongli Lai
CTO at Phusion

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/599e4210-8be8-4a00-beed-f1994d3d7209%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Sunday, March 19, 2017

Hi All,

Quick note - a new Ruby dev conference is starting it's first annual event next month. 4/20 and 4/21. Look at http://rubyhack.com for details.

Max

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/FE0DA30E-0E80-40A2-AED7-8538F9C845E8%40xmission.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Friday, March 17, 2017

On Fri, Mar 17, 2017 at 12:35 PM, Adam <adamtinsley@outlook.com> wrote:
Hi everyone,

I'm brand new to Ruby on Rails. I just went through the tutorial on the Ruby on Rails site which shows how to create a basic blog (http://guides.rubyonrails.org/getting_started.html). I'm trying to figure out how to adjust the view to allow HTML so that the posts have formatting. As it is now, the html tags are escaped. Is there a simple way to allow unescaped HTML into a view so that I can create a formatted post?

you can use html_safe on rails view.
ex : <%= @post.html_safe %>
 

Thanks,

Adam

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2fc060cd-9d9d-497e-94d8-6dfd5fd6ee7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mou Dareka no, tame janakutte
Jibun no Tame ni Warette Iru

( Aqua Timez - Alones )

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANryp8%3DsuNvziTEqH-W%2BZedhui0Auf%2BOmKS9eMy%2BjAGd1g7L4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Thursday, March 16, 2017

Hi everyone,

I'm brand new to Ruby on Rails. I just went through the tutorial on the Ruby on Rails site which shows how to create a basic blog (http://guides.rubyonrails.org/getting_started.html). I'm trying to figure out how to adjust the view to allow HTML so that the posts have formatting. As it is now, the html tags are escaped. Is there a simple way to allow unescaped HTML into a view so that I can create a formatted post?

Thanks,

Adam

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2fc060cd-9d9d-497e-94d8-6dfd5fd6ee7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi Falk,

I'm definitely interested.  My hourly rate is $50/hour.  I usually do a trial period involving
1-2 simple tasks.  If you're keen, let me know :)

On Thu, Mar 16, 2017 at 5:04 PM, FALK LIEDER <falk.lieder@berkeley.edu> wrote:
Hi Jim,

I just saw your post on the Ruby on Rails list, and I have a project that might be interesting to you.
I am a cognitive scientist at UC Berkeley and I would like to contract a  Rails developer to add a relatively simple feature to an existing Ruby  on Rails app. I am happy to pay standard hourly rates according to your  qualifications. Your work would be contributing to scientific research  on how to alleviate the problem of procrastination and help people  become more productive.    Concretely, we have programmed an experiment to study procrastination.  The existing app presents participants with a todo list of writing  tasks. The feature I would like you to add is recording the participants  written responses to those assignments in the data base. The current  version of the app is fully functional and available on Github. There is  also a documentation for the existing code.    Please don't hesitate to contact me with questions or quotes if this job sounds interesting to you.      Best wishes,

Falk Lieder
PhD candidate
Computational Cognitive Science Lab @ UC Berkeley

On Friday, March 10, 2017 at 8:07:22 PM UTC-8, jim wrote:
Hi,

I am deeply sorry if this is an inappropriate post for this group.  Please disregard if it is.

I'm Jim, a Rails developer for about 8 years (turning 9 in May).  I'm looking for a part time
project that I could work on after office hours as I am away from my family and have an
ample amount of time in the evening when I get home from work.  I am at Brisbane,
Australia so my timezone is +10 UTC.  With that, it may be good to get clients on the other
side of the globe so it's still office hours when I'm back at home.

If you have something in mind, please don't hesitate to send me an email.

Thank you and have a great weekend everyone!

Best regards,
Jim

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e08afc41-d445-4fe9-b96b-3d0bae33b0bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-------------------------------------------------------------
visit my blog at http://www.jimruthernill.com

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ8y7VcdnHzgk%3DurSAT7mpPrVgn8OT%2BNwsvUA0FTsmZ4ZHQ_Fg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi Jim,

I just saw your post on the Ruby on Rails list, and I have a project that might be interesting to you.
I am a cognitive scientist at UC Berkeley and I would like to contract a  Rails developer to add a relatively simple feature to an existing Ruby  on Rails app. I am happy to pay standard hourly rates according to your  qualifications. Your work would be contributing to scientific research  on how to alleviate the problem of procrastination and help people  become more productive.    Concretely, we have programmed an experiment to study procrastination.  The existing app presents participants with a todo list of writing  tasks. The feature I would like you to add is recording the participants  written responses to those assignments in the data base. The current  version of the app is fully functional and available on Github. There is  also a documentation for the existing code.    Please don't hesitate to contact me with questions or quotes if this job sounds interesting to you.      Best wishes,

Falk Lieder
PhD candidate
Computational Cognitive Science Lab @ UC Berkeley

On Friday, March 10, 2017 at 8:07:22 PM UTC-8, jim wrote:
Hi,

I am deeply sorry if this is an inappropriate post for this group.  Please disregard if it is.

I'm Jim, a Rails developer for about 8 years (turning 9 in May).  I'm looking for a part time
project that I could work on after office hours as I am away from my family and have an
ample amount of time in the evening when I get home from work.  I am at Brisbane,
Australia so my timezone is +10 UTC.  With that, it may be good to get clients on the other
side of the globe so it's still office hours when I'm back at home.

If you have something in mind, please don't hesitate to send me an email.

Thank you and have a great weekend everyone!

Best regards,
Jim

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e08afc41-d445-4fe9-b96b-3d0bae33b0bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi,    I am a cognitive scientist at UC Berkeley, and I would like to contract a  Rails developer to add a relatively simple feature to an existing Rails app.
I am happy to pay standard hourly rates according to your  qualifications. Your work would be contributing to scientific research  on how to alleviate the problem of procrastination and help people  become more productive.    Concretely, we have programmed an experiment to study procrastination.  The existing app presents participants with a todo list of writing  tasks. The feature I would like you to add is recording the participants  written responses to those assignments in the data base. The current  version of the app is fully functional and available on Github. There is  also a documentation for the existing code.    Please don't hesitate to contact me with questions or quotes.    I am looking forward to hearing from you!    Best wishes,    Falk Lieder
PhD candidate, Computational Cognitive Science Lab
UC Berkeley

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ead570b6-587e-493b-9377-874c49684965%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Wednesday, March 15, 2017

The most common mistake in rails apps is creating a user object that does way too much. People call it "the God object". Just because a user only has one profile doesn't mean you need to combine those models. 

On Mar 14, 2017 8:52 PM, "fugee ohu" <fugee279@gmail.com> wrote:


On Tuesday, March 14, 2017 at 5:31:15 PM UTC-4, Colin Law wrote:
On 14 March 2017 at 21:09, fugee ohu <fuge...@gmail.com> wrote:
>
>
> On Tuesday, March 14, 2017 at 3:56:22 PM UTC-4, Colin Law wrote:
>>
>> On 14 March 2017 at 12:32, fugee ohu <fuge...@gmail.com> wrote:
>> > For an SN site should there be a Profile model A user's gotta have a
>> > profile
>> > I guess right? Then who should pictures belong to, the user or the
>> > user's
>> > profile?
>>
>> Can you give us a clue as to which meaning of SN you are using?
>> https://en.wikipedia.org/wiki/SN does not seem to offer anything that
>> looks particularly likely.
>>
>> Colin
>
> Social Networking

What is in the users table and what is in the profiles table? You
might want to combine them into one table. Why make things complicated
unless there is a good reason?

If you do have separate tables then the question as to whether the
pictures belong to the profile or the user is just a matter of how you
wish to organise it. Think about the problem in real world terms.
Would the actual user think of the pictures as being his, or would he
think that they are the property of his profile?

Colin

>
> --
> 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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.

That's what I'm gonna do Originally the purpose of the profiles was for personals since users could have many I was driven by the challenge more than the reality After I did just about the whole site I decided I don't like this, and I'm scrapping the profile model because first I don't want users to be able to have multiple personas 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3b9f7629-a598-46c9-8e0c-4a7713601a6b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAK5aKaZFWEthzaJuBo%2BX%2B7PCSofCmn_1_AxqaLakamLNs_kAPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Tuesday, March 14, 2017



On Tuesday, March 14, 2017 at 5:31:15 PM UTC-4, Colin Law wrote:
On 14 March 2017 at 21:09, fugee ohu <fuge...@gmail.com> wrote:
>
>
> On Tuesday, March 14, 2017 at 3:56:22 PM UTC-4, Colin Law wrote:
>>
>> On 14 March 2017 at 12:32, fugee ohu <fuge...@gmail.com> wrote:
>> > For an SN site should there be a Profile model A user's gotta have a
>> > profile
>> > I guess right? Then who should pictures belong to, the user or the
>> > user's
>> > profile?
>>
>> Can you give us a clue as to which meaning of SN you are using?
>> https://en.wikipedia.org/wiki/SN does not seem to offer anything that
>> looks particularly likely.
>>
>> Colin
>
> Social Networking

What is in the users table and what is in the profiles table? You
might want to combine them into one table. Why make things complicated
unless there is a good reason?

If you do have separate tables then the question as to whether the
pictures belong to the profile or the user is just a matter of how you
wish to organise it. Think about the problem in real world terms.
Would the actual user think of the pictures as being his, or would he
think that they are the property of his profile?

Colin

>
> --
> 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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/0a8c94f8-0b8d-47f5-9380-6193445137b1%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

That's what I'm gonna do Originally the purpose of the profiles was for personals since users could have many I was driven by the challenge more than the reality After I did just about the whole site I decided I don't like this, and I'm scrapping the profile model because first I don't want users to be able to have multiple personas 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3b9f7629-a598-46c9-8e0c-4a7713601a6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails



On Tuesday, March 14, 2017 at 5:31:15 PM UTC-4, Colin Law wrote:
On 14 March 2017 at 21:09, fugee ohu <fuge...@gmail.com> wrote:
>
>
> On Tuesday, March 14, 2017 at 3:56:22 PM UTC-4, Colin Law wrote:
>>
>> On 14 March 2017 at 12:32, fugee ohu <fuge...@gmail.com> wrote:
>> > For an SN site should there be a Profile model A user's gotta have a
>> > profile
>> > I guess right? Then who should pictures belong to, the user or the
>> > user's
>> > profile?
>>
>> Can you give us a clue as to which meaning of SN you are using?
>> https://en.wikipedia.org/wiki/SN does not seem to offer anything that
>> looks particularly likely.
>>
>> Colin
>
> Social Networking

What is in the users table and what is in the profiles table? You
might want to combine them into one table. Why make things complicated
unless there is a good reason?

If you do have separate tables then the question as to whether the
pictures belong to the profile or the user is just a matter of how you
wish to organise it. Think about the problem in real world terms.
Would the actual user think of the pictures as being his, or would he
think that they are the property of his profile?

Colin

>
> --
> 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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/0a8c94f8-0b8d-47f5-9380-6193445137b1%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Originally I'd thought to allow users to have multiple profiles (you might call them "personas") and I just about built the entire site and now I change my mind and wanna take the profile model out

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e4ba194d-a062-4e4b-b681-9253c6fc395f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On 14 March 2017 at 21:09, fugee ohu <fugee279@gmail.com> wrote:
>
>
> On Tuesday, March 14, 2017 at 3:56:22 PM UTC-4, Colin Law wrote:
>>
>> On 14 March 2017 at 12:32, fugee ohu <fuge...@gmail.com> wrote:
>> > For an SN site should there be a Profile model A user's gotta have a
>> > profile
>> > I guess right? Then who should pictures belong to, the user or the
>> > user's
>> > profile?
>>
>> Can you give us a clue as to which meaning of SN you are using?
>> https://en.wikipedia.org/wiki/SN does not seem to offer anything that
>> looks particularly likely.
>>
>> Colin
>
> Social Networking

What is in the users table and what is in the profiles table? You
might want to combine them into one table. Why make things complicated
unless there is a good reason?

If you do have separate tables then the question as to whether the
pictures belong to the profile or the user is just a matter of how you
wish to organise it. Think about the problem in real world terms.
Would the actual user think of the pictures as being his, or would he
think that they are the property of his profile?

Colin

>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/0a8c94f8-0b8d-47f5-9380-6193445137b1%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuchrmU0koDQcHeOsqqcfx2D6rTiivOfY3_hUW7SixN-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails



On Tuesday, March 14, 2017 at 3:56:22 PM UTC-4, Colin Law wrote:
On 14 March 2017 at 12:32, fugee ohu <fuge...@gmail.com> wrote:
> For an SN site should there be a Profile model A user's gotta have a profile
> I guess right? Then who should pictures belong to, the user or the  user's
> profile?

Can you give us a clue as to which meaning of SN you are using?
https://en.wikipedia.org/wiki/SN does not seem to offer anything that
looks particularly likely.

Colin


Social Networking 

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0a8c94f8-0b8d-47f5-9380-6193445137b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On 14 March 2017 at 12:32, fugee ohu <fugee279@gmail.com> wrote:
> For an SN site should there be a Profile model A user's gotta have a profile
> I guess right? Then who should pictures belong to, the user or the user's
> profile?

Can you give us a clue as to which meaning of SN you are using?
https://en.wikipedia.org/wiki/SN does not seem to offer anything that
looks particularly likely.

Colin

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLs5ty3ni9Z8cSJRyOUqx4dzs2K3PPuwE17bFkphp-JyLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

For an SN site should there be a Profile model A user's gotta have a profile I guess right? Then who should pictures belong to, the user or the  user's profile?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d30e9ca0-2b05-461d-9c83-2bc2ca953159%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On 14 March 2017 at 00:28, fugee ohu <fugee279@gmail.com> wrote:
>
>
> On Monday, March 13, 2017 at 7:51:03 PM UTC-4, Walter Lee Davis wrote:
>>
>> There are a number of different ways you can manage this. One popular
>> approach is to use the Apartment gem to create what is known as the
>> "multi-tenant" database pattern. See if that term gets you closer to what
>> your are looking for.
>>
>> One database (or at least one schema) per site is the usual method, so
>> maybe say a little more about why you feel that you need to have the same
>> database for multiple sites. What makes these sites special, or what makes
>> the number of databases constrained?
>>
>> Walter
>>
>> > On Mar 13, 2017, at 6:30 PM, fugee ohu <fuge...@gmail.com> wrote:
>> >
>> > i have the idea to use the same database for multiple sites but i guess
>> > each site needs it's own database in addition? Anyone can guide me?
>> >
>> > --
>> > 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-ta...@googlegroups.com.
>> > To post to this group, send email to rubyonra...@googlegroups.com.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msgid/rubyonrails-talk/54a73f7c-f8c5-4474-92b5-80a4ca884146%40googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>
> table has
> The users "role" is the condition that determines which database the user
> will access although in this case it's not roles it's just a field in the
> users table that says which database the user will be using

Why use multiple databases? Why not put it all in one database?

Colin

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv4dTzb2ZxLN_qFm5J3Xcb2%3Dqzh7OardH2-LDVqUB--rg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Monday, March 13, 2017



On Monday, March 13, 2017 at 7:51:03 PM UTC-4, Walter Lee Davis wrote:
There are a number of different ways you can manage this. One popular approach is to use the Apartment gem to create what is known as the "multi-tenant" database pattern. See if that term gets you closer to what your are looking for.

One database (or at least one schema) per site is the usual method, so maybe say a little more about why you feel that you need to have the same database for multiple sites. What makes these sites special, or what makes the number of databases constrained?

Walter

> On Mar 13, 2017, at 6:30 PM, fugee ohu <fuge...@gmail.com> wrote:
>
> i have the idea to use the same database for multiple sites but i guess each site needs it's own database in addition? Anyone  can guide me?
>
> --
> 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-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/54a73f7c-f8c5-4474-92b5-80a4ca884146%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
table has
The users "role" is the condition that determines which database the user will access  although in this case it's not roles it's just a field in the users table that says which database the user will be using

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8b108fe7-edb8-4728-b302-0ac9725ef522%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.