[Rails] [JOBS] Looking for full-stack dev Partner

2015-10-07 Thread Matthew Cordasco
We are a small but dedicated startup that is creating the next generation 
crowdsourcing platform.  We have spent the past two years building and 
launching our product and are now gaining paying customers at a good clip.

It's time for us to expand the core development team by adding another 
Partner.

Want to be employee #3?

We are looking for a very special teammate:
- join our core product team
- expand our core crowdsourcing platform 
- breath life into new and awesome features
- drive innovation
- help to build a fantastic company

You love working in startups.  You love wearing multiple hats and are 
extremely curious.  You are a staunch technologist.  We prefer a degree in 
CS or equiv (formal training is good but it's not required), have 3+ years 
with RoR and associated back-end and front-end technologies (Angular, 
Bootstrap, etc.)  


** This is an equity only role. **


Full time or part time?  We are open to either.  Realistically, we don't 
expect anyone to jump in full-time at the beginning.  Start small and grow 
with success.
Will this turn into a full-time gig?  You bet.  Long term we would love 
100% of your commitment.  But we don't need to rush into it.
Will this ever be a paying gig?  You bet.  But since this is a partner 
role, its equity to start.  We can add a cash component down the road.  The 
beauty of equity is that aligns all of our interests perfectly.  


Who are we?
On-demand crowdtesting for websites and mobile apps.  Our platform has 
30,000 testers around the world.
https://mycrowd.com
We are startup veterans, who have founded and sold several companies before 
this.  We know the difference between hiring a contractor and bringing on a 
new partnerwe are looking for our next partner.

We look forward to hearing from you.  Ping us and say hi!

https://mycrowd.com/CONTACT/
or
mattc [at] mycrowd.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+unsubscr...@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/d75484c4-7682-40ca-ba97-973c1ba22957%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Active Record has_one through

2015-10-07 Thread Chris Berry
I have two tables in my app which I am attempting to relate through a
join table.  The Artist class which uses 'has_many through', works as
expected.  However, the Event class using 'has_one through', brings back
nil.

class Artist < ActiveRecord::Base
  has_many :artist_events, dependent: :destroy
  has_many :events, through: :artist_events
end

class Event < ActiveRecord::Base
  belongs_to :artist_event
  has_one :artist, through: :artist_events
end

class ArtistEvent < ActiveRecord::Base
  belongs_to :artist
  belongs_to :event
end

In irb i get all events for an artist with "a.events" (where a =
Artist.first).  But e.artist returns 'nil'. Whats strange is that
a.artist_event returns nill as well. However, when I run a 'find_by' on
the artist_event table and use e.id, the artist_event is returned.

I have tried changing the Event class to use has_one as opposed to
belongs_to, without effect.

What am I missing?  Do I need to have an index in the schema?

-- 
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 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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/1849c51f03107ed6416f71e94e5a8f5b%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Ruby on Rails way of managing views

2015-10-07 Thread Colin Law
On 7 October 2015 at 18:02, Taras Matsyk  wrote:
> Hi RoR experts,
>
> I have a really small question which is probably depends on a personal
> taste but I want to know your opinion.
> I was told that RoR is widely used to render erb files and allows to
> deliver things faster however I do know about the dark side of using the
> rails api and some js framework like ember. You might remember my asking
> the question about your preferred js framework, however js is a matter
> of taste.
>
> So, one more time. The main question : is it still the case that erb
> could give some advantage in app support or delivery time over the rails
> api with some js framework? What is your opinion on this?

The question is meaningless, unless I misunderstand what you are
asking, erb is a server side technology and js is client side.  Most
non-trivial sites require both.

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+unsubscr...@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%3D0gLvHwo-rv-H-26XsTHM5VL-Szef5%3DJEXrED%2BVqp%2BH6Mxyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Ruby on Rails

2015-10-07 Thread Andrey Nering
There is also the oficial Getting Started guide:
http://guides.rubyonrails.org/getting_started.html

Em qua, 7 de out de 2015 às 09:34, James Jelinek 
escreveu:

> Agreed, railstutorial.org is really good to get started.  Thanks for
> catching this!
>
> > On Oct 7, 2015, at 7:23 AM, Colin Law  wrote:
> >
> > On 7 October 2015 at 13:11, Prashant Girennavar 
> wrote:
> >> Hello Experts,
> >>
> >> I am new to RoR and have knowledge of programming(asp.net,c#). I
> wanted to
> >> start of with Ruby as its framework like Rails,Dashing Etc excites me.
> I did
> >> try going through some ebooks , but its kind of hard to understand the
> sytax
> >> and follow the flow of ruby on rails.
> >>
> >> Can someone tell me, how to approach the learning of RoR?
> >
> > I suggest working right through railstutorial.org, which is free to
> > use online.  I am not saying there are not others just as good but it
> > is the one I used and it got me going very quickly.
> >
> > 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+unsubscr...@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%3D0gLsWebyBtpoAp2%3DZXqwyEPwSrivh%2B%2BPToPnPS%2B9J%2Bq%3D8Qw%40mail.gmail.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+unsubscr...@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/85AD3E04-914B-4B04-9730-BD26289A39B8%40gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Andrey Nering
andrey.ner...@gmail.com
Skype: andrey.nering

-- 
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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAD_HktfWyCV586WC40%2BFweT%3Dm6Z-ayQwzO13OeFU0Y8M6r4B9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Best Cloud storage for documents

2015-10-07 Thread Hassan Schroeder
On Wed, Oct 7, 2015 at 10:05 AM, Mansi Shah  wrote:
> I have worked with AWS services but I am not aware of things to be considered 
> to cloud storage. Can you please explain me important criteria for that?

No. Again: *what is your use case*?

Stability/uptime guarantees, multi-region availability, access latency,
security (PCI? HIPAA?) - there are any number of things that might
be relevant to *your specific project*.

You decide what's important and then research cloud providers to
see who meets *your* requirements.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
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+unsubscr...@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/CACmC4yC7HvjBstn%3DgvPmNi3xZswdnsezGYGdztVtqyfgwP2qYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Best Cloud storage for documents

2015-10-07 Thread Mansi Shah
I have worked with AWS services but I am not aware of things to be considered 
to cloud storage. Can you please explain me important criteria for that? And 
also the difference between various service providers facility?

-- 
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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/60fda563-70c7-49ed-84b4-60a8fc8a15fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Ruby on Rails way of managing views

2015-10-07 Thread Taras Matsyk
Hi RoR experts,

I have a really small question which is probably depends on a personal
taste but I want to know your opinion.
I was told that RoR is widely used to render erb files and allows to
deliver things faster however I do know about the dark side of using the
rails api and some js framework like ember. You might remember my asking
the question about your preferred js framework, however js is a matter
of taste.

So, one more time. The main question : is it still the case that erb
could give some advantage in app support or delivery time over the rails
api with some js framework? What is your opinion on this?

-- 
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 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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/10d20c94dbb5567010efd294dc209980%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Best Cloud storage for documents

2015-10-07 Thread Hassan Schroeder
On Wed, Oct 7, 2015 at 9:16 AM, Mansi Shah  wrote:
> Yes cheapest as well as good facilities also.

OK, still missing the point:

What do you mean by "good"? What *exactly* do you care about?

What do you mean by "cheapest"? Lowest bandwidth charges?
Lowest storage charges? Some ratio of the two?

And how would anyone else answer that without knowing the details
of your specific use case?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
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+unsubscr...@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/CACmC4yDZgc_MyELuKdddWk95Vqft9GrwdAcHdMN4p0eGDU2G5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Best Cloud storage for documents

2015-10-07 Thread Mansi Shah
Yes cheapest as well as good facilities also.

On Wednesday, October 7, 2015 at 8:57:10 PM UTC+5:30, Hassan Schroeder 
wrote:
>
> On Wed, Oct 7, 2015 at 7:23 AM, Mansi Shah  > wrote: 
>
> > Which company is providing best cloud storage facility for documents 
> > storage? 
>
> "best" based on what criteria? 
>
> > I need economy solution. 
>
> So does "best" mean "cheapest"? 
>
> -- 
> Hassan Schroeder  hassan.s...@gmail.com 
>  
> http://about.me/hassanschroeder 
> 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+unsubscr...@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/588ab0f7-67e7-49a6-b5bc-f49443ae6ab9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Best Cloud storage for documents

2015-10-07 Thread Hassan Schroeder
On Wed, Oct 7, 2015 at 7:23 AM, Mansi Shah  wrote:

> Which company is providing best cloud storage facility for documents
> storage?

"best" based on what criteria?

> I need economy solution.

So does "best" mean "cheapest"?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
http://about.me/hassanschroeder
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+unsubscr...@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/CACmC4yABi23GUvpynT54g5yD1T0r8Vyd4bjdUxJY9YwCEfD7%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: ActiveRecordAssociation

2015-10-07 Thread Colin Law
On 7 October 2015 at 14:30, peter williams  wrote:
> @Андрей Молчанов
> I have a method  add_product in the cart_model that's supposed to capture
> the price from line_item. Within the new migration AddPriceToLineItem i was
> given the hint
> to iterate over the LineItem.all.each do |item|
>
>  add the product_price to each item in LineItem
>
> end
>
> If the price is being parsed around objects doesn't it make sense to monitor
> it?
> What if the cart has problems obtaining the price properly?

Please quote the relevant parts of the previous message when replying.
Since you have not done so it is not easy to see which points you are
commenting on.

I don't know what you mean by "parsed around objects"  I guess you
probably meant "passed around objects" but even then I don't know what
you mean, and I also don't know what you mean by "monitor it".
Also you ask what if the cart has problems obtaining the price
properly, again I don't know what you mean.

Please try again to ask the questions.

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+unsubscr...@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%3D0gLvKsMXBxvQO-g2Y8w1T-agQKTFxajyhOS-nqSfCvqRYkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Re: How to write code to search serialize object in rails3 with PG sql

2015-10-07 Thread Matt Jones


On Tuesday, 6 October 2015 13:54:40 UTC-4, Arvind Vyas wrote:
>
> My code is this 
> {"1"=>"5", "2"=>"test", "3"=>"tes"}}, 
> view_cout: 1>
>
> How I can write code to search project from "my_data" key or value ?
>
> I have search and found there is one way by hstore we can achieve it ( 
> https://github.com/diogob/activerecord-postgres-hstore) but in this sense 
> I have to change current logic of storing data also I have to move the 
> current data to new fild if I use this.
> Is there any good way which take less changes or 
> if not then what should I do to create filter for it.
>

You might want to consider the Postgres JSON support - it will allow for 
queries deep into the data.

BUT you should first think hard about whether this should be a serialized 
field at all; one of the primary tradeoffs you make with serialized fields 
vs. storing the data broken out into related records is *searchability*. If 
you're going to be querying the values extensively, maybe an alternative 
approach within your DB is better - or perhaps even a secondary indexing 
system (Solr / ElasticSearch / etc).

--Matt Jones

-- 
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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/f31e08f1-95b3-44af-b4d2-d19513aeb227%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Best Cloud storage for documents

2015-10-07 Thread Mansi Shah
Hello,

Which company is providing best cloud storage facility for documents 
storage?

I need economy solution.

Thank you.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@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/1e434e45-c627-42ff-8391-7e2f0c449b2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Re: ActiveRecordAssociation

2015-10-07 Thread peter williams
@Андрей Молчанов
I have a method  add_product in the cart_model that's supposed to capture 
the price from line_item. Within the new migration AddPriceToLineItem i was 
given the hint
to iterate over the LineItem.all.each do |item|
   
 add the product_price to each item in LineItem 

end

If the price is being parsed around objects doesn't it make sense to 
monitor it?
What if the cart has problems obtaining the price properly?

thx


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@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/2b928892-9396-4665-aadc-e9a628a2df8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Ruby on Rails

2015-10-07 Thread James Jelinek
Agreed, railstutorial.org is really good to get started.  Thanks for catching 
this!

> On Oct 7, 2015, at 7:23 AM, Colin Law  wrote:
> 
> On 7 October 2015 at 13:11, Prashant Girennavar  wrote:
>> Hello Experts,
>> 
>> I am new to RoR and have knowledge of programming(asp.net,c#). I wanted to
>> start of with Ruby as its framework like Rails,Dashing Etc excites me. I did
>> try going through some ebooks , but its kind of hard to understand the sytax
>> and follow the flow of ruby on rails.
>> 
>> Can someone tell me, how to approach the learning of RoR?
> 
> I suggest working right through railstutorial.org, which is free to
> use online.  I am not saying there are not others just as good but it
> is the one I used and it got me going very quickly.
> 
> 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+unsubscr...@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%3D0gLsWebyBtpoAp2%3DZXqwyEPwSrivh%2B%2BPToPnPS%2B9J%2Bq%3D8Qw%40mail.gmail.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+unsubscr...@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/85AD3E04-914B-4B04-9730-BD26289A39B8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Ruby on Rails

2015-10-07 Thread Ganesh Ranganathan
On Wed, Oct 7, 2015 at 5:41 PM, Prashant Girennavar 
wrote:

>  Can someone tell me, how to approach the learning of RoR?
>

​Michael Hartl's tutorial is the best place to start for a beginner to
Rails - https://www.railstutorial.org/

Thanks,
Ganesh​

-- 
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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CALFmRoFDNfFH9Pz9bSkq90jueRg54kUTpsu_NRMQv%2Bxcsswi-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Ruby on Rails

2015-10-07 Thread Colin Law
On 7 October 2015 at 13:11, Prashant Girennavar  wrote:
> Hello Experts,
>
>  I am new to RoR and have knowledge of programming(asp.net,c#). I wanted to
> start of with Ruby as its framework like Rails,Dashing Etc excites me. I did
> try going through some ebooks , but its kind of hard to understand the sytax
> and follow the flow of ruby on rails.
>
>  Can someone tell me, how to approach the learning of RoR?

I suggest working right through railstutorial.org, which is free to
use online.  I am not saying there are not others just as good but it
is the one I used and it got me going very quickly.

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+unsubscr...@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%3D0gLsWebyBtpoAp2%3DZXqwyEPwSrivh%2B%2BPToPnPS%2B9J%2Bq%3D8Qw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] ActiveRecordAssociation

2015-10-07 Thread Colin Law
On 7 October 2015 at 12:03, Frederick Cheung  wrote:
>
>
> On Wednesday, October 7, 2015 at 8:32:58 AM UTC+1, Colin Law wrote:
>>
>> On 7 October 2015 at 00:26, peter williams  wrote:
>>
>> It seems that section has been removed from the latest guides, I don't
>> know why.  Anyone know whether it was removed for a good reason?
>>
>
> It was removed here:
>
> https://github.com/rails/rails/commit/a2d80417376c6ca18275a702553d2db2af25bf1f

That is interesting.  It appears that because no-one could come up
with a good example of how using the model can go wrong the whole
section was removed, meaning that the guide has no example of how to
use a model in a migration.  Not entirely sure I would agree with that
logic.

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+unsubscr...@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%3D0gLssKZ9cDMtFo7HhQ-ZFuBN2AydtyzH-RGW0WHFMkWV8AA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Ruby on Rails

2015-10-07 Thread James Jelinek
Two sites that are pretty helpful that have screencasts are railscasts.com 
(older content but still good) and gorails.com.  Check them out and get a feel 
for the framework.  I think you’ll love it!

-James

> On Oct 7, 2015, at 7:11 AM, Prashant Girennavar  wrote:
> 
> Hello Experts,
> 
>  I am new to RoR and have knowledge of programming(asp.net,c#). I wanted to 
> start of with Ruby as its framework like Rails,Dashing Etc excites me. I did 
> try going through some ebooks , but its kind of hard to understand the sytax 
> and follow the flow of ruby on rails.
> 
>  Can someone tell me, how to approach the learning of RoR? 
> 
> Thanks,
> 
> -Prashant Girennavar.
> 
> -- 
> 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 rubyonrails-talk@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/8e828e55-a10c-484a-804b-51688e80cf37%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+unsubscr...@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/6AE96F75-B9E2-4C58-A433-24FD70BFF4F5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Ruby on Rails

2015-10-07 Thread Prashant Girennavar
Hello Experts,

 I am new to RoR and have knowledge of programming(asp.net,c#). I wanted to 
start of with Ruby as its framework like Rails,Dashing Etc excites me. I 
did try going through some ebooks , but its kind of hard to understand the 
sytax and follow the flow of ruby on rails.

 Can someone tell me, how to approach the learning of RoR? 

Thanks,

-Prashant Girennavar.

-- 
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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8e828e55-a10c-484a-804b-51688e80cf37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] ActiveRecordAssociation

2015-10-07 Thread Frederick Cheung


On Wednesday, October 7, 2015 at 8:32:58 AM UTC+1, Colin Law wrote:
>
> On 7 October 2015 at 00:26, peter williams  wrote: 
>
> It seems that section has been removed from the latest guides, I don't 
> know why.  Anyone know whether it was removed for a good reason? 
>
>  
It was removed here:

https://github.com/rails/rails/commit/a2d80417376c6ca18275a702553d2db2af25bf1f 

-- 
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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/e71b5b11-7e17-4c0e-8ca4-0584410e0596%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] I would like to invite for free programming Ruby on Rails course

2015-10-07 Thread madac1308
Discover our free Ruby on Rails web course:
http://www.clab.type.pl/rails2/invitation/

-- 
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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/98df512b-f3bd-436e-bbec-3416e22a7499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] ActiveRecordAssociation

2015-10-07 Thread Colin Law
On 7 October 2015 at 00:26, peter williams  wrote:
> Hi people,
>
>
> i'm new to rails and have difficulties in actively using the model
> relationships.
> I'm building an onlinestore with rails 4.2.4 following the book agile
> development with rails 4.
> The asignment is to create a migration that copies the product price to the
> line item.
>
> Class Product < ActiveRecord::Base
>
> has_many :line_items
>
> Class LineItem < ActiveRecord::Base (is a jointable between product and
> cart)
>
>belongs_to :product
>
> My question is how do i instruct rails to copy an attribute from one model
> to the other (in this case product.price to line_item.price)

Андрей Молчанов is correct when he says that you should not store the
same information in two places in the database.  However there are
certainly cases where it is necessary to adjust data in existing
tables during a migration.  Have a look at [1] which has examples of
how to do this and notes some pitfalls to watch out for.

It seems that section has been removed from the latest guides, I don't
know why.  Anyone know whether it was removed for a good reason?

Colin

[1] 
http://guides.rubyonrails.org/v3.2.8/migrations.html#using-models-in-your-migrations

-- 
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 rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuBaT6rKNU_eNybA4WtT_efMtVSzPW1Lxqp7DyHk3h%2Bzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.