Re: [Rails] How Do I Re-Open an App in the Terminal, When I Restart Rails

2015-10-22 Thread TTambe
When you're in the proper directory in the terminal you just need to start the server by running the command rails s. You'll then see the application in your browser at localhost:8000 On Thu, Oct 22, 2015 at 11:01 AM, Darren Brett King < darrenkingcoach...@gmail.com> wrote: > Hi everyone, > > I h

Re: [Rails] Nested loops through one model

2015-02-23 Thread TTambe
expressions to refer to ungrouped columns except within aggregate functions, since there would be more than one possible value to return for an ungrouped column. On Sat, Feb 21, 2015 at 4:13 PM, TTambe wrote: > Ok, so I need some help again. Every thing works great locally, but when I > p

Re: [Rails] Nested loops through one model

2015-02-21 Thread TTambe
474432892294_70083862737420' I've been Googling it, but any answers I've found haven't been clear enough for me to fix the issue. I see it says that pins.id must appear in the Group By clause, but I'm not clear on that. On Fri, Feb 20, 2015 at 1:22 PM, TTambe wrote: &g

Re: [Rails] Nested loops through one model

2015-02-20 Thread TTambe
You're absolutely right Colin, thanks. I'm not that familiar with that simplified syntax of if/else statements, so I learned quite a bit from this exchange! On Fri, Feb 20, 2015 at 3:57 AM, Colin Law wrote: > On 20 February 2015 at 00:01, TTambe wrote: > > I actually ended

Re: [Rails] Nested loops through one model

2015-02-19 Thread TTambe
9, 2015 at 2:45 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Thu, Feb 19, 2015 at 5:57 AM, TTambe wrote: > > Someone suggested that I use local variables like this: > > > > <% @pin_albums.each do |pin| %> > > <%= (last_artist

Re: [Rails] Nested loops through one model

2015-02-19 Thread TTambe
5 at 9:13 AM, Colin Law wrote: > On 19 February 2015 at 13:57, TTambe wrote: > > Someone suggested that I use local variables like this: > > > > <% @pin_albums.each do |pin| %> > > <%= (last_artist ||= nil) != pin.artist ? (last_artist = pin.artist) :

Re: [Rails] Nested loops through one model

2015-02-19 Thread TTambe
Someone suggested that I use local variables like this: <% @pin_albums.each do |pin| %> <%= (last_artist ||= nil) != pin.artist ? (last_artist = pin.artist) : '' %> | <%= link_to pin.album, copy_pin_path(pin) %> <% end %> This gives me the same result as my original code: The Beatles | Let

Re: [Rails] Re: Learn Ruby on Rails before I start building my web app?

2015-02-18 Thread TTambe
I think I'm confused by your question. Rails is a framework that uses the Ruby language. Are you asking if you should learn Ruby first? If that's your question, then I'd say you don't have to do it first, but it would help. If you go through one of the tutorials that I recommended, then you'll use

Re: [Rails] Learn Ruby on Rails before I start building my web app?

2015-02-18 Thread TTambe
If you know HTML, CSS, and JS, then you're more than ready to try RoR. Go through a tutorial like www.railstutorial.org. I started with https://onemonth.com/courses/one-month-rails/ and really liked that course. On Wed, Feb 18, 2015 at 12:23 PM, Stella Buttercup < stellabutterc...@gmail.com> wrot