In Controller.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Single line 2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# PUT /people/1
# PUT /people/1.xml
def update
@person = Person.find(params[:id])
=begin (Multiple lines)
respond_to do |format|
if @person.update_attributes(params[:person])
flash[:notice] = 'Person was successfully updated.'
format.html { redirect_to(@person) }
format.xml { head :ok }
else
format.html { render :action => "edit" }
format.xml { render :xml => @person.errors, :status => :unprocessable_entity }
end
end
=end
end
In View.rhtml
<!-- Single Line -->
<% # @people = Person.find(:all) %>
<!-- Multiple Lines -->
<!--
<% for person in @people %>
<%= person.name %>
<% end %>
-->
<% # @people = Person.find(:all) %>
<!-- Multiple Lines -->
<!--
<% for person in @people %>
<%= person.name %>
<% end %>
-->
Thanks for sharing such a nice tip. Whenever some one is new to web development it is very important to first learn programming language as per my knowledge. Well ruby is one of the best programming language for Rails development. If you are looking for ROR developers in India email us at: info@cryptextechnologies.com
ReplyDeleteWhen you are searching to hire a website design company then you should always choose reliable and professional, Revise is the best government website design company which contains good record and be ready to give you site according to your needs.
DeleteThanks for the tips on the comment single line in ROR. You can find related web development tools and resources here. http://www.jqueryplugins.net
ReplyDeleteGreat article Lot's of information to Read... Great Man Keep Posting and update to People..Thanks
ReplyDeletejava forums
Thanks man
ReplyDeleteperfect explanation about java programming .its very useful.thanks for your valuable information.java training in chennai | java training in chennai chennai, tamil nadu
ReplyDeleteGreat, what a collaboration. I love your blog post. keep sharing. Thanks
ReplyDeleteHire RoR Developer
Great sharing. Cryptex Technologies Pvt. Ltd. is an IT company which focuses on providing services to client. The company works on Ruby on Rails Platform since it was started in October 2007. If you are looking for ruby on rails developers in india, then contact us at: info@cryptextextechnologies.com
ReplyDeleteAfter reading this blog i very strong in this topics and this blog really helpful to all... explanation are very clear so very easy to understand... thanks a lot for sharing this blog more info on Ruby on Rails Online Training
ReplyDeleteNice blog and absolutely outstanding. You can do something much better but i still say this perfect.Keep trying for the best. ROR Development Company India,
ReplyDeleteI’m trampled by your contents carry on the wonderful work. array
ReplyDeleteNice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…
ReplyDeleteClick here:
angularjs6 Training in Chennai
Click here:
Microsoft azure training in chennai
Click here:
angularjs6 Training in Chennai
Click here:
angularjs Training in online
Good Post, I am a big believer in posting comments on sites to let the blog writers know that they ve added something advantageous to the world wide web.
ReplyDeleteClick here:
Microsoft azure training in chennai
Click here:
Microsoft azure training in annanagar
Click here:
Microsoft azure training in velarchery
Click here:
Microsoft azure training in sollinganallur
Pleasant Tips..Thanks for Sharing….We keep up hands on approach at work and in the workplace, keeping our business pragmatic, which recommends we can help you with your tree clearing and pruning in an invaluable and fit way.
ReplyDeleteData Science Training in Chennai | Data Science course in anna nagar
Data Science course in chennai | Data science course in Bangalore
Data Science course in marathahalli | Data Science course in btm
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeletejava training in chennai | java training in USA
Very impressive to read your blog
ReplyDeletebest azure certification class in chennai
Informative post, thanks for taking time to share this page.
ReplyDeleteAzure Training in Chennai
Microsoft Azure Training in Chennai
R Programming Training in Chennai
Data Science Training in Chennai
Data Science course in Chennai
Azure Training in OMR
Azure Training in Adyar
AWS Training in Chennai
Angularjs Training in Chennai
I was looking for this certain information for a long time. Thank you and good luck.
ReplyDeleteinformatica mdm online training
apache spark online training
angularjs online training
devops online training
aws online training
aws training center in chennai
ReplyDeleteaws training in chennai
aws training institute in chennai
best angularjs training in chennai
angular js training in sholinganallur
angularjs training in chennai
azure training in chennai
Nice Blog, When i was read this blog i learnt new things & its truly have well stuff related to developing technology, Thank you for sharing this blog.
ReplyDeleteMicrosoft Azure Training in Chennai | Azure Training in Chennai
Nice Blog, When i was read this blog i learnt new things & its truly have well stuff related to developing technology ruby on rails online training Hyderabad
ReplyDeleteI am happy for sharing on this blog its awesome blog I really impressed. thanks for sharing.
ReplyDeleteBecome an Expert In Software Testing Training! The most trusted and trending Programming Language. Learn from experienced Trainers and get the knowledge to crack a coding interview, @Softgen Infotech Located in BTM Layout.
Thanks for this wonderful blog it is really informative to all.keep update more information about this
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
python Training in Bangalore
aws Training in Bangalore
I like your post very much. It is very much useful for my research. I hope you to share more info about this. Keep posting Ruby On Rails Training
ReplyDeleteExcelR provides data scientist course in pune. It is a great platform for those who want to learn and become a Business Analytics. Students are tutored by professionals who have a degree in a particular topic. It is a great opportunity to learn and grow.
ReplyDeletedata scientist course in pune
Data science course
Data scientist course
Data science course in pune
AI Patasala aims at providing the most effective Python Training in Hyderabad. Our school has taught a lot of individuals and assisted them in locating good jobs.
ReplyDeleteOnline Python Course in Hyderabad
betmatik
ReplyDeletekralbet
betpark
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
HLD
betmatik
ReplyDeletekralbet
betpark
mobil ödeme bahis
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
55B
Adana
ReplyDeleteElazığ
Kayseri
Şırnak
Antep
AGİAX6
Diyarbakır
ReplyDeleteKırklareli
Kastamonu
Siirt
Diyarbakır
P0J
yozgat
ReplyDeletetunceli
hakkari
zonguldak
adıyaman
4KY8M6
ECD1C
ReplyDeleteBartın Evden Eve Nakliyat
Çorum Evden Eve Nakliyat
Eryaman Alkollü Mekanlar
Osmaniye Evden Eve Nakliyat
Denizli Evden Eve Nakliyat
20D9B
ReplyDeleteÇerkezköy Ekspertiz
Sivas Şehirler Arası Nakliyat
Urfa Lojistik
Siirt Evden Eve Nakliyat
Batıkent Fayans Ustası
Ünye Organizasyon
Silivri Duşa Kabin Tamiri
Artvin Şehirler Arası Nakliyat
Ağrı Şehirler Arası Nakliyat
4C5FB
ReplyDeleteArtvin Parça Eşya Taşıma
Ünye Organizasyon
Tokat Şehirler Arası Nakliyat
Balıkesir Lojistik
Ankara Şehir İçi Nakliyat
Şırnak Şehir İçi Nakliyat
Gölbaşı Boya Ustası
Afyon Parça Eşya Taşıma
Antep Şehir İçi Nakliyat
AF31E
ReplyDeleteTekirdağ Parke Ustası
Niğde Evden Eve Nakliyat
Ünye Petek Temizleme
Kocaeli Evden Eve Nakliyat
Niğde Parça Eşya Taşıma
Aksaray Şehirler Arası Nakliyat
Erzurum Lojistik
Bitci Güvenilir mi
Samsun Parça Eşya Taşıma
FA363
ReplyDeleteGümüşhane Rastgele Görüntülü Sohbet
görüntülü sohbet kızlarla
kilis bedava sohbet siteleri
çanakkale telefonda kadınlarla sohbet
Ağrı Görüntülü Sohbet Canlı
parasız sohbet
bedava sohbet odaları
denizli canlı sohbet uygulamaları
van mobil sohbet odaları
شركة تسليك مجاري بالاحساء w4zSPJuyyw
ReplyDeleteشركة مكافحة النمل الابيض بالقطيف 1qY6M6Jm09
ReplyDelete