search for: parareda

Displaying 20 results from an estimated 25 matches for "parareda".

Did you mean: parada
2008 Aug 24
11
link_to_function check javascript attribute
How could I check the value of an javascript object''s attribute? <div id="new_item_details" style="display:none"></div> <%= link_to_function("Show details...", nil, :id => "show_details") do |page| page.visual_effect(:toggle_blind, :new_item_details) if (page[:new_item_details].style.visibility ==
2005 Jun 29
4
Problem connecting to MySQL
...e: No such file or directory - /tmp/mysql.sock In my MySQL config file I have this line: socket=/var/lib/mysql/mysql.sock Why Rails doesn''t pick up this value instead of his default value? How could I change the configuration of Rails in order to change that value? -- / Eduardo Yáñez Parareda /
2010 Dec 30
6
validates_inclusion_of doesn't match constant
Hello, I have a model Model: SPECIAL_FEATURES = %w(none top) class Model validates_inclusion_of :special_feature, :in => Model::SPECIAL_FEATURES, :on => :create, :message => "special_feature %s is not defined" belongs_to :team def special_feature attributes = attributes_before_type_cast if attributes["special_feature"]
2005 Jun 23
6
Problems with Hello World
...r#index (for 127.0.0.1 at Thu Jun 23 18:14:45 CEST 2005) Parameters: {"action"=>"index", "controller"=>"my_test"} Completed in 0.00114 (880 reqs/sec) So I suppose all is right, but browser doesn''t show me the index page. -- / Eduardo Yáñez Parareda /
2008 Jul 04
4
Libs directory
Hello, I had an application on Rails 1.2 or 1.1 (don''t remember). Now I have updated it to 2.1. I had a migrations_helper.rb in the Libs directory which defined foreign_key and drop_foreign_key methods. But now migrate task doesn''t find them. Have I to include this directory somewhere with Rails 2.1? Doesn''t it work as always? Could I use another thing to declare
2006 Jul 13
6
Migrations + foreign keys
Hi all, In the AWDR author use the execute method to declare foreign keys: execute "alter table.... add constraint.... foreign key...." Is there a ruby sintax to declare a foreign key in a migration class? -- Posted via http://www.ruby-forum.com/.
2008 Jan 27
4
(REST) Nested routes
Hello, I''m in troubles with nested routes. I have three models: Team, Tournament and TeamTournaments class Team < ActiveRecord::Base has_many :tournaments, :through => :team_tournaments has_many :team_tournaments class TeamTournament < ActiveRecord::Base belongs_to :team, :foreign_key => ''team_id'' belongs_to :tournament, :class_name =>
2006 Aug 14
2
Another try with REST
I''m using edge rails. My routes.rb is: map.connect '':controller/service.wsdl'', :action => ''wsdl'' # Install the default route as the lowest priority. map.connect '':controller/:action/:id'' map.resources :team <---- THIS LINE ADDED BY ME Also have a team_controller.rb, a team.rb model and scaffolding for it. If I
2006 Jul 13
4
Regenerate DB
Hi again :), I''m playing with migrations. I''ve created some migrations classes and with rake db:migrate the tables are created and altered fine, but then I dropped some of the tables and when I run db:migrate command again I don''t get tables being re-created. What am I doing wrong? Is there a way to run db:migration in order to drop the tables? -- Posted via
2007 Mar 08
3
Problem loading data from database
Hello, I get this error trying to load some data from DB. I''m using Rails 1.2.2 on Fedora Core 6 and Sybase adapter. This worked fine when application run under Rails 1.1.6 but now I''m migrating to 1.2.2 and have some problems. At browser I got: SQL Command for table_structure for tplib_bckps failed Message: schema_info not found. Specify owner.objectname or use sp_help to
2006 Aug 11
2
Some questions of REST actions
I''ve set up my application to use edge rails in order to get REST functionality. I''ve a controller called team (team_controller.rb) with some actions (index, list, show, create, new....). Moreover in routes.rb I''ve added map.resources :team so I guess I could call localhost:3000/xxxx/team/1 or localhost:3000/xxxx/team/1;edit Well, when I do the first call, server
2008 Jul 24
1
How to add link_to_remote element with RJS?
Hello, after executing an action, I add an <li> element to an existing list using a RJS template: page.insert_html :bottom, :contributors, "<li id=''contributor.#{@contributor.id}''>#{@contributor.user.name}</li>" but I need to add an image with a link_to_remote as I have in a partial page: <li id="contributor.<%= contributor.id
2006 Aug 01
1
SimplyRestful
Hi, Is it SimplyRestful compatible with Rails 1.1.4 or Would I need edge Rails? -- Posted via http://www.ruby-forum.com/.
2006 Mar 14
7
Starting with RJS - not working
Hi, I''m trying to work with RJS and folowed Cody Fauser''s tutorial (http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates) I''ve started by creating a new rails applications and executing rake freeze_edge rake rails:update:javascripts rake rails:update:scripts After that I''ve created a controller: class DtestController < ApplicationController
2006 Aug 11
1
Changing to edge rails
Hi, I''m developing an application and used rails 1.1.4 o generate the structure, some models, scaffoldings and so. How it is in an early stage I''ve decided to use edge rails instead of stable release. Well, I''ve checked-out edge rails in a directory and made a symbolic link within vendor/rails dir of my application. Is it enough to use edge rails or do I need to do
2006 Aug 18
1
How update a record which hasn''t id column?
Hi, I''ve two database tables 1-N related and one of them doesn''t have id column: matches (id, more columns), match_details(match_id, ... more columns) Also have two models that represents these tables: Match MatchDetail has_one :match_detail belongs_to :match, :foreign_key => ''match_id'' When I
2006 Jul 18
1
Replacing scaffolds
Hi all, having a scaffold for a model, I''d like to replace some of the views that Rails offers me. When it''s showed the details of a particular model, I''d like to show a link to an action of the controller. What must I do?, Should I create a new show.rhtml view to get the dafault view replaced? -- Posted via http://www.ruby-forum.com/.
2006 Jul 18
1
One or several controllers?
Hi again, I have several model classes that need CRUD operations on them. Could I have a controller to manage scafolding for all of them or I need a controller for each model? -- Posted via http://www.ruby-forum.com/.
2008 Feb 22
0
Problems with drag&drop + scrollbar
Hello, I''m using RoR 2.0.2. In a page my app has a droppable DIV, and several draggable items in another DIV. Item''s DIV is declared overflow => auto, so when there are too many items in the list a scrollbar appears. Then, if user peeks an item and try to drag it to the droppable DIV, the item beings hidden below that DIV. Drag&drop still works fine in this situation, but
2006 Oct 11
3
Accents
Hello, I''m having troubles with accents in words I retrieve from database. What I expect is ''Retención'' but what I get is ''Retenci?n''. When I retrieve that info with a Java app it works fine. Is there any solution? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups