pepe wrote in post #958200:
> Hi all,
>
> Finally starting with git/versionning and would like to know the best
> place(s) where to post my questions (many of them). Already signed up
> at http://vger.kernel.org/vger-lists.html.
This should answer most, if not all, of your questions about Git:
--
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 post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I am trying to do a search where I can enter a part of a word and the
search find all occurrences of that part word in the field. The above
subject does not work. Can anyone help
I am using Rails 3 and ruby 1.9.2
I use to be able to do it in rails 2.x.
In my Model I have the following:-
def self.search(search_item)
if search_item
self.where('section = ?', '%:search_item%')
else
self.all
end
end
In my controller I have:-
@homepages = Homepage.search(params[:search])
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @homepages }
format.js {render :js => @homepages}
end
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
hi all,
I have a rails application at http://electric-sky-98.heroku.com/products
require 'net/http'
require 'uri'
res = Net::HTTP.get_response(URI.parse('http://electric-
sky-98.heroku.com/products.xml'))
puts res.body
the above code gave me the xml file below:
<?xml version="1.0" encoding="UTF-8"?>
<products type="array">
<product>
<brand>Tubers</brand>
<created-at type="datetime">2010-10-30T01:35:48Z</created-at>
<id type="integer">1</id>
<name>Yam</name>
<price>£ 30</price>
<quantity>100 tubers</quantity>
<sku>WDW332</sku>
<updated-at type="datetime">2010-10-30T01:35:48Z</updated-at>
</product>
</products>
QUESTION:::
How do i create a new product object at http://electric-sky-98.heroku.com/products
with ruby HTTP POST
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.