Auto_complete plugin Mime: CSS

Just upgraded to 2.0, I’ve installed the auto_complete plugin.

When the new event page loads, attached is the error page I get. I’m new
to Rails so I’m quite stumped.

Please help!!!

I think the image is too small, in which case, the error is…

‘uninitialized constant Mime::CSS’

for the line <%= text_field_with_auto_complete :event, :location %>
Many thanks

Ever managed to solve this?

Thanks,
Bounce

On Dec 15 2007, 10:31 pm, Richard H. <rails-mailing-l…@andreas-

Yeah, I removed 2.0 and the plugin and now it works. Bit of a roundabout
solution but there we are

Solution:

<%= text_field_with_auto_complete :event, :location, {}, :skip_style
=> true %>

Then this is the default css extracted. You need to include this.

div.auto_complete ul {
border:1px solid #888;
margin:0;
padding:0;
width:100%;
list-style-type:none;
}
div.auto_complete ul li {
margin:0;
padding:3px;
}
div.auto_complete ul li.selected {
background-color: #ffb;
}
div.auto_complete ul strong.highlight {
color: #800;
margin:0;
padding:0;
}

Works fine. And now you have some control over the CSS.

On Jan 3, 6:42 am, Richard H. [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs