tag:blogger.com,1999:blog-1525178018811356129.post3981331321969051423..comments2023-06-02T06:08:53.530-05:00Comments on fairleads: Rails 2.0 Step by Step (part 2)Sean Lynchhttp://www.blogger.com/profile/16196715129586398563noreply@blogger.comBlogger192125tag:blogger.com,1999:blog-1525178018811356129.post-42865926435438400682011-03-26T02:28:09.294-05:002011-03-26T02:28:09.294-05:00Can you please help me out, as I have to store all...Can you please help me out, as I have to store all the data in a table to another table whenever I desstroy its ID....suketa sharmahttps://www.blogger.com/profile/07646992982000015990noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-55348664110624928172011-03-08T03:52:51.509-06:002011-03-08T03:52:51.509-06:00nice tutorials for beginner.
Thanksnice tutorials for beginner.<br />ThanksSalman ansarihttps://www.blogger.com/profile/12841793261922335770noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-40359176821165407862010-12-19T14:35:00.794-06:002010-12-19T14:35:00.794-06:00Pretty good list, I’m just glad it’s concise.Pretty good list, I’m just glad it’s concise.balon patlatmahttp://www.balonpatlatma.biz.trnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-84795252112633215242010-10-10T01:58:59.695-05:002010-10-10T01:58:59.695-05:00I was getting soo frustrated with other Rails tuto...I was getting soo frustrated with other Rails tutorials not working. Then discovered the problem was due to rails 2.0. Your tutorial was well written and easy to follow, seeing results the stopped me from giving up on RoR.kayu oyunlarıhttp://www.kayuoyunlari.biz.trnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-23822056432134027802010-10-10T01:58:06.330-05:002010-10-10T01:58:06.330-05:00I have worked through miles of documentation regar...I have worked through miles of documentation regarding rake but I can't seem to find a way of doing somethinghugo oyunlarıhttp://www.xn--mariooyunlar-d5b.comnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-24240137949391708272010-10-05T15:21:21.660-05:002010-10-05T15:21:21.660-05:00Great tutorial and plenty of room to play! I did h...Great tutorial and plenty of room to play! I did have a problem with the display of the jpegs on the main page running Firefox 3.6.10 on Win 7 64 bit. I ended up substituting the use of image_tag for <img in index.html.erb:<br /><br /> <%= image_tag(movie.one_sheet_url, :size => "54x70") %><br /> <!--img class="list-one-sheet" src="<%= movie.one_sheet_url %>"/--><br /><br />The 54x70 worked better for my jpegs and this bypasses the css but it solved the problem for me.<br /><br />Thanks again for your work!mostwoodnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-13525773949941991362010-10-03T04:41:53.137-05:002010-10-03T04:41:53.137-05:00very good and helpful tutorial for beginners. Good...very good and helpful tutorial for beginners. Good stuff !!mario oyunlarıhttp://www.xn--mariooyunlar-d5b.comnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-45153595698518105252010-10-03T04:41:08.851-05:002010-10-03T04:41:08.851-05:00I have an existing mysql database and am trying to...I have an existing mysql database and am trying to figure out how to import the existing schema.<br />Running 'script/generate model my_table_name' gives an incorrect migration file that just contains a timestamp like so:giydirme oyunlarıhttp://www.giydirmeoyunlarim.orgnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-20810490353756157122010-10-03T04:39:11.714-05:002010-10-03T04:39:11.714-05:00I though I'd try it on one of my real systems....I though I'd try it on one of my real systems. I have worked through miles of documentation regarding rake but I can't seem to find a way of doing something that I thought would have been simple. My existing database has over 100 tablesmario oyunuhttp://www.xn--mariooyunlar-d5b.comnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-1762755858054226502010-09-24T15:28:28.157-05:002010-09-24T15:28:28.157-05:00I had read the tow tutorials, and they are very we...I had read the tow tutorials, and they are very well writen, congratulations for the great work! Can't wait to the 3rd one! Thanks!Alexandrehttps://www.blogger.com/profile/13171229927290683305noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-53307379372024132402010-09-22T06:35:21.063-05:002010-09-22T06:35:21.063-05:00Great. I am sure, I will tweet this to my twitter ...Great. I am sure, I will tweet this to my twitter account. This will help a lot of users.iPad Application Developmenthttp://www.zco.com/noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-15042483939597079872010-08-21T05:22:28.997-05:002010-08-21T05:22:28.997-05:00By far the best ROR tutorial out there. One that A...By far the best ROR tutorial out there. One that ACUTALY WORKS!!! I'm amazed and so happy I found it. Please tell me more!<br /><br /> -- JasonUnknownhttps://www.blogger.com/profile/14435093273708667036noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-79426888895728892882010-07-12T22:04:32.214-05:002010-07-12T22:04:32.214-05:00wow nice blog because i'm a newbie and i need ...wow nice blog because i'm a newbie and i need some info to use rails..<br />tahnks.divahttp://linux.blog.gunadarma.ac.idnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-63360531087828994282010-04-10T15:01:12.330-05:002010-04-10T15:01:12.330-05:00Thank you. I had sometime ago ventured into Rails...Thank you. I had sometime ago ventured into Rails (1.0) and was dismayed that Rails 2 had "moved my cheese". But your tutorial updated my knowledge in short order and enhanced my understanding. Thanks again!L5n25https://www.blogger.com/profile/10600830082920693546noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-90162641876633975702010-04-09T02:28:18.462-05:002010-04-09T02:28:18.462-05:00Thank you ... excellent job ...Thank you ... excellent job ...R. Azimihttps://www.blogger.com/profile/01951705652431158381noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-73022221505110862782010-03-30T09:42:49.327-05:002010-03-30T09:42:49.327-05:00Thank you very much, I was getting soo frustrated ...Thank you very much, I was getting soo frustrated with other Rails tutorials not working. Then discovered the problem was due to rails 2.0. Your tutorial was well written and easy to follow, seeing results the stopped me from giving up on RoR. Thanks. Im looking forward to Part3.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-80779485220348504892010-03-21T10:25:52.463-05:002010-03-21T10:25:52.463-05:00Take a look at the Magic Model Generator, which wi...Take a look at the Magic Model Generator, which will generate models based on your existing tables.<br /><br />http://magicmodels.rubyforge.org/magic_model_generator/Unknownhttps://www.blogger.com/profile/04308984625849375315noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-8014472652456972842010-03-21T10:16:59.385-05:002010-03-21T10:16:59.385-05:00Anonymous March 21,
type "script/generate mo...Anonymous March 21,<br /><br />type "script/generate model" at the command line in your application's top directory and the help file for the script/generate model command will be displayed. This includes the format of how to include column names and types in the command.<br /><br />script/generate model ModelName [field:type, field:type]<br /><br />Examples:<br /> `./script/generate model account`<br /><br /> creates an Account model, test, fixture, and migration:<br /> Model: app/models/account.rb<br /> Test: test/unit/account_test.rb<br /> Fixtures: test/fixtures/accounts.yml<br /> Migration: db/migrate/XXX_add_accounts.rb<br /><br /> `./script/generate model post title:string body:text published:boolean`<br /><br /> creates a Post model with a string title, text body, and published flag.<br /><br />So 'script/generate model my_table_name' creates your model (should use caps version here as example in help file hints) but no columns because you listed no columns. <br /><br />There is probably a better way to do what you want to do as well. You have an existing schema. Rails migrations can execute SQL to run pure SQL. <br /><br />For one idea look here:<a href="http://www.justinball.com/2008/05/09/dump-an-existing-database-schema-into-a-ruby-on-rails-migration-ready-format/" rel="nofollow"><br />http://www.justinball.com/2008/05/09/dump-an-existing-database-schema-into-a-ruby-on-rails-migration-ready-format/</a><br /><br />Post to the ruby on rails talk group for more help:<br /><a href="http://groups.google.com/group/rubyonrails-talk/topics" rel="nofollow">http://groups.google.com/group/rubyonrails-talk/topics</a><br /><br />-seanSean Lynchhttps://www.blogger.com/profile/16196715129586398563noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-87301235640096252392010-03-21T00:01:44.979-05:002010-03-21T00:01:44.979-05:00Hi, great work. I bookmarked the CSS stuff for la...Hi, great work. I bookmarked the CSS stuff for later use as that was my next area of research. I have been coding in C,Perl and PHP for a long time and have been told to give RoR a try. Rather than a Hello World program or a library => book => subject tye of tut, I though I'd try it on one of my real systems. I have worked through miles of documentation regarding rake but I can't seem to find a way of doing something that I thought would have been simple. My existing database has over 100 tables abd I wanted to import that information into a Rails Object Model (scaffold?). I thought I nearly had it:<br /><br />I have an existing mysql database and am trying to figure out how to import the existing schema.<br />Running 'script/generate model my_table_name' gives an incorrect migration file that just contains a timestamp like so:<br /><br /><br />class CreateEventCategories < ActiveRecord::Migration<br /> def self.up<br /> create_table :event_categories do |t|<br /><br /> t.timestamps<br /> end<br /> end<br /><br />How do I get the table elements inside this do-hickey? Please don't tell me it is hand typed. RoR goes in the bin if that is the case. I hope not. It looks like it might be fun.<br /><br />Cheers,<br />Mark Addinall.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-12011475535788568742010-02-10T19:01:16.734-06:002010-02-10T19:01:16.734-06:00Hello, this is Chun, your tutorial is very helpful...Hello, this is Chun, your tutorial is very helpful. I have 1 problem, when i create the _form.html.erb, and then new.html.erb, and edit.html.erb, after i finish all that, i get ��<�p�>� � � � , which can't finish your tutorial, do you know why it is happening? I use firefox. thank you for your response.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-58799165488396414082009-12-27T08:32:10.938-06:002009-12-27T08:32:10.938-06:00Hi Sean,
It's a amazing tutorial. I had alredy...Hi Sean,<br />It's a amazing tutorial. I had alredy a lot of other tutorial and spend very time without learn nothing.<br />Definitelly a did see the ROR did a good work!!!<br />Please, you must continue write about it!!!<br />Thanks for your help...Alexandre Ferreira from Brazil. ;0)noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-70006558685790350382009-12-08T11:38:58.184-06:002009-12-08T11:38:58.184-06:00Hi Sean,
Thanx for the reply. I understand that dy...Hi Sean,<br />Thanx for the reply. I understand that dynamic scaffolding is no longer supported. What I want to find out is if you can generate scaffolding via command line, but have the scaffolded table associated with a controller ( not dynamically, but routing wise ). In other words, I don't want the model as part of the url, but the controller, which would route to the index view for that table.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-52385469398524159462009-12-08T06:29:21.130-06:002009-12-08T06:29:21.130-06:00Dynamic scaffolding no longer works.
It is a one t...Dynamic scaffolding no longer works.<br />It is a one time scaffold generation.<br /><br />scaffolding will not pick up changes automatically they must be made by hand post 2.0Sean Lynchhttps://www.blogger.com/profile/16196715129586398563noreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-20699666288190225002009-12-07T17:08:41.745-06:002009-12-07T17:08:41.745-06:00I followed your articles, especially the differenc...I followed your articles, especially the difference with 2.0 scaffolding. One question: Pre 2.0, the scaffold directive in the controller made an association between the controller and the table that was scaffolded. With cmd line scaffolding in 2.0, the scaffolding is created for the table, but it is has no association with the controller. In pre 2.0, putting the controller name in the URL would by default give a listing of the table referenced in the scaffold directive. But now, in 2.0, I have to put the name of the model/table into the url for the same result. So, how to link a controller to a scaffolded table in 2.0?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1525178018811356129.post-46577248154862597472009-12-07T08:18:39.158-06:002009-12-07T08:18:39.158-06:00hi its very good tutorial to study for new develop...hi its very good tutorial to study for new developerAnonymousnoreply@blogger.com