search for: koloa

Displaying 20 results from an estimated 27 matches for "koloa".

Did you mean: kolo
2006 Sep 23
8
acts_as_rateable plugin help!
Hello, I am having some trouble figuring out how to use the rateable plugin. i followed as close as the directions located at http://www.naffis.com/blog/articles/2006/08/31/rails-ajax-star-rating-system but i fail at working it. i am getting this error You have a nil object when you didn''t expect it! The error occured while evaluating nil.rating Extracted source (around line #1): 1:
2006 Feb 26
17
please help: having problem with the scaffold commad, mysql.
i just recently purchase agile web dev book about ruby on rails and going through the whole project. well i am now stuck on creating the scaffold. I have been messing with settings for awhile now. here is the error: koloa@ubuntu:/var/www/depot$ ruby script/generate scaffold Product Admin exists app/controllers/ exists app/helpers/ exists app/views/admin exists test/functional/ dependency model exists app/models/ exists test/unit/ exists test/fixtures/ identical app/models/product.rb identical test/unit/product_test....
2006 Aug 03
3
how do i build this? is the only way to use session, or can
i pass and save muliple paramters between different views with different models? what i am trying to do use instead of the user filling out forms to search my database, i just want them to click on links. the first link selects data from one table and then a different view of links will be displayed. the user will then click on a new link but i will need to also know what the user clicked
2006 Dec 26
15
is there a way to not repeat installing plugins?
i seem to be using the same plugins for all my sites and was wondering if there is a way to make the process easier and faster? is this what is called by "packing your own gems"? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2006 Aug 13
7
you can pass multiple parameters using link_to? anything bad
i just found out i can pass mutiple parameters from views like <%= link_to doctype.name, :action => "show_towns", :id => doctype.name, :id2 => doctype.id%> silly me, i always had the impression that i could only pass 1. i guess i dont have to use sessions after all for my site. is there anything wrong with this? basically instead of the user filling out
2006 Dec 11
6
easy question, how would i search a grandparent???!
hi, i have this in my code Article.find_by_contents("#{searchstring} +city:#{passedincity}") well that returns to me only articles that belong to whatever the user selected in city. now is it possible to search the grandparent? for example class country has_many states class states has_many cities belongs_to country class city belongs_to states ...... i would like to search
2006 Feb 28
10
Scaffold command, how and what may be wrong?
hi everyone. I am learning RoR and just recently purchase the agile wed dev on rails. i am still at the beginning of the book trying to create the scaffold for the depot_development database. Everytime i run the generate scaffold products admin, i recieve the "before building the scaffold, try to create a table for model products" etc... a few questions: 1. How does ruby know that
2006 Aug 13
3
ruby and mysql syntax? tried single quotes, double, none, ...
Hi, how do i use passed in arguments and convert those to something sql can understand? do the aliases have to be double qouted? single qouted? i think i tried all but no avail...thanks! def get_count(doctype, towne) @profiles = Profile.count_by_sql("SELECT COUNT(*) from Profiles where Profiles.doctype_id = 1 and town_id = towne") end -- Posted via
2006 Aug 15
1
how do i print to command prompt from the controller or
class? i tried puts and STDOUT but no avail. any help? I am trying to debug why i am getting a nil object when there is data in my table. THANKS! -- Posted via http://www.ruby-forum.com/.
2006 Jun 15
1
is capistrano (switchtower) what i use to create my server?
hi, im currently working on a laptop and would like to rake the stuff onto a production server aka my old pc running ubuntu. is capistrano what i should be reading about to do this? thanks -- Posted via http://www.ruby-forum.com/.
2006 Jun 20
1
typo proplem here? what may be wrong?
Hi, I am following the tutorial on the hostingrails site but running into problems. I am pretty sure my files match everything that is in the tutorials. here is whats in my production.log file: ActiveRecord::StatementInvalid (Mysql::Error: Table ''hrkoloa_typo.triggers'' doesn''t exist: SELECT * FROM triggers WHERE (due_at <= ''2006-06-19 22:37:23'') ): now when i ran the scema, the table is populated. I checked if the table exist by logging into mysql with the typo user name + pw. any ideas? ive modified the d...
2006 Oct 15
1
acts_as_attachment and tagging?
hi, i read this: http://www.johnnysthoughts.com/2006/08/27/ruby-on-rails-using-full-text-search-with-tagging/ does this mean i do not have to install the acts_as_taggable plugin? all i need to do is something like this is my model class? acts_as_ferret :field=>[''name'', :tag_list] -- Posted via http://www.ruby-forum.com/.
2006 Aug 15
4
question about hashes in views that model a table?
if i have a table called cars with columns called year and type, and i create a model and do this @mycars = Cars.find(:all) in my view i have something like this for cars in @mycars do something like print out cars.type i know that @mycars in a hash where each key is a column name paired with its corresponding value right? without the for loop, how can i access the 2nd record directly?
2006 Oct 16
8
acts_as_ferret: can i specify a search on 1 field as suppose
to the ones i defined in my model? for example if in the model i specify acts_as_ferret to index only column 1, 2, and 3 in my table....how can i perform a search just for column 1 if need be. for example, id like to give the user the ability to just search on title name vs description, etc... thanks! -- Posted via http://www.ruby-forum.com/.
2006 Nov 17
3
acts_as_ferret + :tag_list, how to use it?
hello, i am currently using acts_as_ferret in one of my applications and now would like to also incorproate tags. i came across somesones blog that had this: ////// Having Ferret index method results (like :tag_list) worked out-of-the-box for me with acts_as_ferret. I specified attributes (table columns) as strings and methods as symbols, like so: acts_as_ferret :fields => [?title?,
2006 May 01
12
pagination in acts_as_ferret
I''m just wondering where I would put the pagination for search results when using "acts_as_ferret". At the moment my search code is.. def search @query = params[:query] || '''' unless @query.blank? @results = Tutorial.find_by_contents @query end end Cheers SchmakO -- Posted via http://www.ruby-forum.com/.
2007 Jan 16
4
RJS - What the the advantages? / Why use?
Hi, I''ve read up on RJS and understand the concept/how-to-use. It''s still not clear in my mind when and why to use RJS? Can anyone drop in a couple of bullet points re advantages + when/why would RJS make sense? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Jul 20
4
Plugins: svn externals vs. local repository
...or, what is the best practise for ensuring that capistrano gets plugin code to the production server? Do you hook up your plugins to the originating repository (thereby automatically picking up changes to the plugin), or check them into your application''s repo and use "script/plugin update" to keep plugins fresh? Does that method mess with your .svn directories? thanks for
2006 Aug 15
7
Programmer Needed For a Game Development Project
Programmer is responsible for writing Ruby on Rails code which will interact with both MySQL and PostgreSQL databases, Memcached, and paypal. Additional skills required are advanced Javascript, XHTML, and CSS knowledge. You will be working with other programmers to finish the project which is already in active development. Programmers with experience working on high traffic websites (5+ million
2006 Aug 12
10
adding extra variable to a class, how to access it?
somple question here but pretty confusing on my side. i have a model towns that is mapped to my towns table. can i add an extra variable to the class and access it in my view? basicall what i am trying to do is return a list of towns, and next to each town, display a total number of what i have in each town. ive tried both attr_reader and @total but no avail. here is my view <% for