Hi , what will be if my site traffic became huge , can i separate db
server and add 3 or more app server using rails framework. i think
designing my site using rails and put it in EC2 servers. what do you
think about this system? Will be work or not?
--~--~-~--~~~---~--
Thanks Marnen i solved using Stephen Chu's params[:fu] fantastic
series :)
On Jun 23, 1:45 am, Marnen Laibow-Koser wrote:
> lecielbleu wrote:
> > Many thanks , whats your suggestion about making a form using these
> > codes?
>
> You can certainly do that. Check ou
Many thanks , whats your suggestion about making a form using these
codes?
On Jun 22, 6:57 pm, Marnen Laibow-Koser wrote:
> Marnen Laibow-Koser wrote:
>
> [...]
>
> > Something like this:
>
> > product = Product.new(params[:product])
> > category = Category.find(params[:category_id])
> > Categor
i think there ara two ways of relate products and categories ,
basically i want to fix one product(e.g hp dv7) to some categories
(notebook,17"notebooks...)
i made a table named categorization(incuding category_id,product_id
fields) then in models i write these codes below
class Product < Ac
is there any sample code for this navigation, i tried to put variable
in application controller , but it didnt work ,
when i put @var ="abc" in application controller then i wrote <%=
@var %> , it displayed nothing.
On Jun 20, 12:01 pm, lecielbleu wrote:
> what will be i
what will be if i display another controller , it will give me
undefined method cause left column is depended on product
controller ,i want a template working in many controllers
On Jun 19, 11:10 pm, Philip Hallstrom wrote:
> On Jun 19, 2009, at 1:08 PM, lecielbleu wr
<% content_for :left_column do %>
<%= render :partial => 'left_column' %>
<% end %>
where this codes should be? in the layout folder?
if i understand , i must generate 2 files (one is template ,other one
is _left_column.html.erb partial templats) , am i right?
On Jun 19, 9:53 pm, Philip Hal
Hi , imagine that you have one layout and every point of that is made
with another templates. how can i handle this situation. For example
in the left column ,displaying list of subcategories depending on
category which is displayed at this time in the center of site (<%=
yield :layout %> line). i
Many thanks Robin , yes it's possible doing this as you said but i
have too much categories and subcategories (using acts_as_tree) ,
Method i will use must be dynamic , if not i cant handle with
100categories
On Jun 19, 2:44 pm, Robin Fisher wrote:
> On 19 June, 11:48, lecielble
Hi , do we have to use controller name in url , can we change this?
For example i have a controller named => category
when user click to link "Computer Components"
can rails write http://domain/computer-components instead of
http://domain/categories/53
--~--~-~--~~~---
i solved thanks :)
On Jun 10, 2:02 pm, lecielbleu wrote:
> hi ,
> i cant succeed add variable in xpath (libxml)
> brand = "037"
> xpath = "//Root/s...@category='601' and @Brand=#{brand}]"
> stack = node.fin
hi ,
i cant succeed add variable in xpath (libxml)
brand = "037"
xpath = "//Root/s...@category='601' and @Brand=#{brand}]"
stack = node.find(xpath)
i used #{brand} but doesnt work
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Thanks a lot Simon , it worked ,
can we double this filter method like category="601" and brand="15" at
the same time
On Jun 8, 4:32 pm, "Simon Macneall" wrote:
> try doc.find('//Root/s...@category="601"]')
>
> On Mon, 08 Jun 2009 2
Hi ,
i have xml document like this
then i have to use Category attribute but reader class couldnt
recognize attributes
when i use these codes below for testing;
while reader.read
puts reader.node_type
end
it shows only 1 an
t; seems like you are saying a loop with an unchanging condition runs forever.
> Yes, it does.
>
> Did you intend to do this:
>
> while reader.read
> puts reader.read_string
> end
>
> HTH
> Jeff
>
> Quoting lecielbleu :
>
>
>
> > i tried also
> &
i tried also
while doc == true
while doc = 1
while doc
results dont change
On Jun 4, 12:51 pm, lecielbleu wrote:
> i guess problem is while reader line because when i run basic code
> below :
>
> while doc == true
> puts reader.read_string
>
There are no header tags. I have no idea how libXML will behave. It
> isn't very tolerant of invalid input. Try adding the puts statements I've
> inserted below to find out how far it is getting.
>
> Quoting lecielbleu :
>
> > my xml data seems like that : 2 >
end
end
flash.now[:message]="brands read"
end
Note : i add one more "end" cause it was saying unexpected end
On Jun 3, 3:33 pm, "Jeffrey L. Taylor" wrote:
> Have not seen this error before. Please show more of your co
i tried this an get an error =
NoMemoryError
failed to allocate memory
error line number 30 =stack << reader.name
On Jun 2, 6:59 pm, "Jeffrey L. Taylor" wrote:
> Quoting lecielbleu :
>
>
>
> > is there anybody who knows how we can get child val
is there anybody who knows how we can get child values using libxml
(Reader class)
def xml_import_to_brands
require'xml'
reader = XML::Reader.file('c:/brands.xml')
.
.
.
--~--~-~--~~~---~--~~
You re
Thanks for all , i have solved problem , it was only text-editor
options , i changed scite standarts (encoding=utf-8) and it's
worked :)
On May 29, 12:47 pm, Brad Wilson
wrote:
> I've discovered the same thing as Peter, although I'm using different
> tools (Upscene's Database Workbench Pro 2.8
Hi , i have a problem while importing unicode characters (üşçö
etc). i have scaffold categories model then i try create new
categorie using CRUD scenario so it worked ,
but when i use csv_import controller , characters dont seems right.
how can i solve this problem
--~--~-~--~~
Hi , i'm looking for db import from external xml file , which method
is usual for this process , should i create new xml file (using rexml)
for arrange them or import directly to my db . i'll work about 4 or 5
external xml data (every xml file has different xml scheme) and
integrate(create new , d
23 matches
Mail list logo