similar to: Need good tutorial on ActiveRecord associations

Displaying 20 results from an estimated 8000 matches similar to: "Need good tutorial on ActiveRecord associations"

2013 Oct 21
6
I think I've found a mistake in Rails tutorial
At the point of this section *http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure*<http://ruby.railstutorial.org/chapters/sign-up#sec-signup_failure> clicking the "Create my account" button on the signup form shows the following image at <http://ruby.railstutorial.org/images/figures/signup_failure_rails_4.png> According to the tutorial, I must modify
2012 Jun 30
4
find_by_sql and join
hi I amd tanizawa. I had problem. I can not get main.name value from below sql. "find_by_sql ''select main.id,main.name,sub.name from main left join sub on sub.id = main.id''" Please teach me how to get borth name value. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the
2013 Apr 24
3
join table naming
Hi, I’m an amateur learning rails and could use some help… I created a join table “pictures_questions” and append to it in the following way: @picture = Picture.new(params[:picture]) … if @picture.save @question.pictures << @picture Everything works fine but honestly I think I got this working by sheer luck and trial and error. I have 2 questions: 1. I do not understand the
2009 May 12
2
STI good or bad for my problem?
Hi. I am currently developing a small course system for student and teachers. The system is divided in sections and sections have many messages, comments, documents and schedules. Pretty easy to set up using ROR, just add some belongs_to and has_many relations. But everything becomes much more complicated when the section items (message, comment and so on...) all has comments. And they can also be
2013 May 22
3
rails 4, active record: appending to has_many :through does not create join model anymore?
hi folks. on rails 4, can somebody confirm that pushing model instances onto a has_many :through relation does not create the necessary join model anymore? class Reader < AR::Base belongs_to :post belongs_to :person end class Post < AR::Base has_many :readers has_many :people, through: :readers end @post.people << Person.new so,
2013 Oct 17
5
Newbie - Installation Problems
Hi, If im in the wrong place please redirect me: I have decided that i''m goignt o jump inand learn rails the hard way. I know I have to go through the initial learnign curve. One of them is to know where to go when you get stuck.. so here goes... I''m installing on Windows 7. using guide: http://guides.rubyonrails.org/getting_started.html Ruby version:1.9.3p392 Rails
2013 Jul 11
1
Do I Edit the Migration Too to Show the Belongs To
Hi Everyone, Do I edit the corresponding migration also to show the belongs_to (and the has_many)? I have a many to many relationship where I am using the "has_many :through" association. When I place in the individual classes the ''has_many :through'' and the ''belongs_to'' associations, do I also edit the corresponding migrations to reflect those
2013 Oct 21
8
git push not working
<https://lh4.googleusercontent.com/-IA0TutFw54A/UmVnJwi7CHI/AAAAAAAAAzg/fEZFf_kHsug/s1600/git.gif> Hi again, I''m working on http://ruby.railstutorial.org section http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec-git_push I''m trying to push the repository to the remote site but what ever I fials. I''ve updated, removed the s of the https etc but still
2013 Jun 26
2
having isues with creating a ajax call in my simple rails application ,
hi all , having isues with creating a ajax call in my simple rails application , can any body be available for some time to help on mail or chat ?? -- 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
2011 Oct 02
5
tutorial: gravatar_image_tag problem
Hi all, Still working through the Hartl tutorials. Making progress but am hitting (another) wall. The repository is on github at: git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:aamax/sample_app.git if you want to see the code. I''ve pretty much followed the tutorial exactly except I am using rails 3.1.0 rather than 3.0.1 and some of the other gem versions are different. I
2009 Sep 12
3
Need help on Many to Many Relationships
Hi, Does anyone know where I can find a full step by step tutorial on Many to Many Relationships with Rails or can describe the steps in inserting data into the join tables, displaying the connections, etc.. - I don''t only need the model, but all the steps that you would use in the MVC architecture to make it work. I am a new to Rails and I cannot find a complete tutorial on all the
2013 Mar 02
3
Following railstutorial.org tutorial, how to make the microposts be seen by all?
I am a new learner of Ruby on Rails. I followed through the railstutorial.org tutorial and I''m trying to learn off the sample demo app where you can to make microposts and only the people who are "following" you can see them. If I wanted to make it so every user can see microposts as an additional functionality, what are the steps to do that? -- Posted via
2013 Aug 30
3
frozen? is defined by ActiveRecord
Hello folks I got that error Pls tell me what''s wrong frozen? is defined by ActiveRecord -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this
2011 Nov 24
4
How do I destroy all the posts when the board is destroyed?
I got a application like following. A board has many posts All posts belong to a board I try to destroy all the posts under a board when I destroy the board. My destroy function is following. def destroy @board = Board.find(params[:id]) @post = @board.posts @post.destroy @board.destroy respond_to do |format| format.html { redirect_to(boards_url) } format.xml
2010 Sep 27
5
RoR Tutorial : clear password field
Learning Rails following the Rails Tutorial book I have the following question. In chapter 8 at the Exercises part they talk about clearing the password field. I tried several things to do this, but till now didn''t find the solution. Anyone has a tip how to do this? Thanks in advance -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2013 Sep 04
7
Shift from mongrel to webrick
Hi Everyone I have installed mongrel gem and in my dev I can able to run my app on mongrel but If I want to shift to webrick how can I shift easily with out uninstalling the mongrel gem Thanks in advance -- 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
2013 Oct 24
6
undefined method `paginate' for #<Class:0x567eb98> in Rails Tutorial
Hi, I''m getting a undefined method `paginate'' for #<Class:0x567eb98> even though I have gem ''will_paginate'' installed. Inside the users_controller I have @users = User.paginate(page: params[:page ]) so I believe I set everything up to be correct. Can you figure out why the method''s undefined, despite installing the gem? -- You received this
2011 Sep 23
1
Simple Association
Hello, I am new to rails and I need a little help getting started with a simple association. Here is what I am trying to do. I have a model, message, which has text and a user (do not need to worry about associating users to messages right now). These messages come in and I would like to create a response for each, which itself is a message. Then I would like to create a transaction paring these
2012 Sep 20
6
Good books about the internals of Rails 3
Hi, I''m a new RoR and Ruby developer and I''m searching for some good resources (books or website) that go a little further than books like the railstutorial (which is excellent btw). But after reading this, I feel like as long as I''m working with scaffolding and simple gems, it''s ok, and a lot can be accomplished with this but I would like to have a deeper
2013 Oct 04
4
Best Book 4 RoR
Hello, Is there a great book for Ror. I am looking for a book with a step by step approch and by PROJECTS!! RoR needs to be ''practiced'', and i didn''t find those WORKING PROJECTS. Am i dreaming or is this paper exists. All the books on amazon are not amazING. They talks only about theory. Theory is fine, i mean this is RoR. But then... Thanks for those who, first,