Aug 11, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Agile Web Development with Rails, 3rd Edition / How often is the beta being updated?

My gerbil just finished my new and very much improved beta book. I’m very excited to finish my getting started application, and I’m ready to deploy my first application, so your security and deployment sections will be very helpful. It’s great news that there will be another version of Ruby on Rails coming out so soon and that you’ll be covering the changes.

I apologize for coming off as impatient before. I bought the beta book under the preconceived notion that another version would be released within a few weeks. It’s likely I wouldn’t have purchased yet another Ruby on Rails book if this wasn’t the case, since I have several others. Thus, when I finished the updated content I was excited about continuing and was not able to. Reading this thread and the many others who were upset only made it more reasonable, in my mind, to post what I did.

From your point of view, there was still a lot of work to be done and the previous date mentioning the availability was likely a mistake. From my point of view, it was like buying a book and having the store not ship it for a month and a half. I understand that you are human and appreciate the hard work that has gone into this new update. I’m very much excited to read the new sections. :) With that in mind, please see our side too – we are not whiners, just slightly agitated for the prolonged wait.

Thanks for the update!

~Dustin Tigner

 
Jul 31, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Agile Web Development with Rails, 3rd Edition / password_non_blank p159

Thanks Sam,

I’ve made the change in my depot application and works very well. With your new code snippet, and Dave’s explanation, I feel I understand the reasoning behind the extra bit of code.

Thanks for taking the time to answer my question. Have a good day!

~Dustin Tigner

 
Jul 31, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Agile Web Development with Rails, 3rd Edition / password_non_blank p159

Thanks Dave,

I apologize if I came off as harsh or demanding. I’m used to communities such as Larry Ullman’s PHP forums where the community is a bit more active and willing to answer questions. I understand that my questions are not your top priority and appreciate when I do receive answers.

My main concern here is that this board invites question and suggestions. If members were to post questions and not receive answers, the reader, like myself, would feel a bit abandoned. I purchased the book and felt as if the boards here were an extended service – something that only those who are customers may use and receive additional help.

With that in mind, I’m sorry if I did expect some sort of assistance. If I didn’t, I wouldn’t have posted. I waited three days for a reply before posting again. I feel that this shows that I was indeed patient and not as demanding as you may have stated. I posted my question here because it related directly with your product. Next time I’ll reframe from doing so.

Your answer was very helpful and direct to the point. Thank you for your time and assistance.

~Dustin Tigner

 
Jul 31, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Agile Web Development with Rails, 3rd Edition / password_non_blank p159

What is the point of this forum if it is not to ask questions? I didn’t feel the book explained this method very well and would like more information. What’s wrong with just checking the presence of the password and password_confirmation content? If these two fields were filled in and matched, then it’s obvious that there would be a hashed password. Just check the database.

Any information would be helpful. Thanks!

~Dustin Tigner

 
Jul 31, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Agile Web Development with Rails, 3rd Edition / How often is the beta being updated?

I bought this book in beta because of what Sam said: “every three weeks +/- a week or so.” If you don’t mean it, don’t say it. The last revision happened almost two months ago. Please update us on what the hold up is. Thanks!

~Dustin Tigner

 
Jul 29, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Agile Web Development with Rails, 3rd Edition / Test bug from 2.1 in latest beta book?

I have version 1.3 – have they released a newer version than that? If not, then the testing section is still outdated. You can tell by the color of the pages. If the top is gray, it hasn’t been updated yet. Thus, read the red sections for up-to-date information.

~Dustin Tigner

 
Jul 28, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Agile Web Development with Rails, 3rd Edition / password_non_blank p159

Greetings,

Could someone explain to me the importance of having password_non_blank on page 159? When you do not enter a password and submit the form, the form shows an error for the password, though does not highlight the password field.

def password_non_blank
  errors.add_to_base("Missing password") if hashed_password.blank?
end

This is my second time reading over this section of the book. I’m trying to program a user system for my first official Rails application. Thanks for your help!

~Dustin Tigner

 
Mar 14, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Rails for PHP Developers / Forbidden Access in Chapter 5

I was able to get around this by going to:

http://www.pragprog.com/titles/ndphpr/source_code

Download the source code for the entire book. Open: building_a_rails_app => user_group_6 => public => images (or stylesheets).

~Dustin Tigner

 
Mar 14, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Rails for PHP Developers / Forbidden Access in Chapter 5

Greetings,

I’m following the user_groups example in chapter five, page 155 of the PDF book. The book states that you should go to the following pages to download the images and CSS code:

http://media.pragprog.com/titles/ndphpr/code/building_a_rails_app/user_group_6/public/stylesheets/
http://media.pragprog.com/titles/ndphpr/code/building_a_rails_app/user_group_6/public/images

When I load these URLs, I am directed to a forbidden page that reads:

You don’t have permission to access /titles/ndphpr/code/building_a_rails_app/user_group_6/public/stylesheets/ on this server.

Am I doing something wrong? Please let me know. Thanks!

~Dustin Tigner

 
Feb 23, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Rails for PHP Developers / Example application in Ch.1

Mike,

Thanks for the clarification. I thought I had downloaded an older version. I must have read over it since it did not pertain to me at that moment. Perhaps with the second version of the book, this little note could be provided after: “Without this template, we are shown the error in Figure 1.4, on the previous page.” on page 37 of the PDF. It could read: “Remember, if you receive a redirecting error message, you may have to restart your server.” Just a suggestion. :)

Thanks again for your help! :)

~Dustin Tigner

 
Feb 23, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Rails for PHP Developers / Example application in Ch.1

Hey guys,
I just ran into the same problem and I’m on Mac OS 10.4.11. I’ve been stuck on this for a while. I’m glad I found this post! I don’t recall any note stating that I should restart my WEBrick, and I should have a final version… could you tell me what page this note is on?

Does this mean I need to restart the WEBrick server for every model I add? How does this affect live servers?

~Dustin Tigner

 
Feb 23, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Rails for PHP Developers / ruby script/server problem

After my last post, I really thought it had to do something with the path on my computer. To this end, I re-read the ruby installation part again. It states that you must set the path, which is what I did. However, it states that I should edit or create a .bash_login and add:

export PATH=”/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH”

to it. I did this, though it doesn’t seem to do anything. I did notice a .bash_profile file (since there was no a .bash_login file originally). I added the above path code to it and now my path reads:

/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin:usr/local/bin:/usr/local/bin

After making this change I am able to see the newest version of Ruby. As far as I know, everything works now. If you see something wrong with the solution, or have advice for anything else I should do (such as cleaning up my path). Please let me know. Thanks!

~Dustin Tigner

 
Feb 23, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Rails for PHP Developers / ruby script/server problem

It seems I am having a problem with installing the most recent version of Ruby. I followed all instructions from this article: http://hivelogic.com/articles/ruby-rails-mongrel-mysql-osx/

This is the article the Ruby website recommends. It details how to install the newest version of Ruby. However, when I do everything and check my version afterwards, it states that my version is still 1.8.2. This is the second time I have installed the most recent version.

Could this be a path problem? My path is: /bin:/sbin:/usr/bin:/usr/sbin:usr/local/bin:/usr/local/bin

I noticed that there is two usr/local/bin, should I remove the (supposed) duplicate?

Sorry for being so newbish. I really wish to start learning Ruby and Rails, though I seem to always come across walls that take forever to cross. I hope we can resolve this! Thank you for your help and time!

~Dustin Tigner

 
Feb 22, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Rails for PHP Developers / ruby script/server problem

Ah, I see. I actually thought I had 1.8.6 till I made that post last night. I’ll set out to update my ruby version. Thanks for the help!

~Dustin

 
Feb 22, 2008
Generic-user-small Dustin Tigner 15 posts

Topic: Rails for PHP Developers / ruby script/server problem

Hello guys,
I’ve just started and it seems I’m already off the road. I’m on chapter 1 and am suppose to run: ruby script/server from within the newsletter directory. When I do this, I receive the following error:

Rails requires RubyGems >= 0.9.4. Please install RubyGems and try again: http://rubygems.rubyforge.org

The only thing is, I have RubyGems 1.0.1 running, which is what it says when I run ruby -v. I’m not sure why it thinks I’m running a version of RubyGems that is less than 0.9.4.

I’m on Mac: 10.4.11, running RoR: 2.0.2, Ruby: 1.8.2

Let me know if you have any questions. Thank you for the help!

~Dustin

15 posts