similar to: MVC architecture

Displaying 20 results from an estimated 8000 matches similar to: "MVC architecture"

2010 Aug 21
4
No route matches?
Hi all, I''m coming from the PHP world and I''m trying to learn Ruby and Rails. I''m having a problem where I keep getting the error "No route matches / home/view" even though I have it defined it. I''d appreciate any help on this. I''m using rails 3.0 and the setting for the environment is "development". # routes.rb
2013 Oct 27
5
run simple method from Helper on button click
Greetings, I''m new to rails and currently having couple problems about how to add javascript functionality into rails. I have a simple method in the helper and i want to run this code on button click. ------------------------------------------------------------------ module PagesHelper def show_message "simple output" end end
2006 Jun 21
0
rails MVC
Bonjour a tous, voila j''ai quelque soucie a comprendre comment s''enchaine les appels de la vue/controleur/model dans Rails :( j''ai une classe qui me permet de faire la liaison entre ruby et c++ (ca marche parfaitement) que j''ai mis ds le repertoire model (je ne l''ai pas cree avec generate parce que je ne veux pas de BD! et j''avais
2006 Aug 04
9
Mongril or Lighthttttp? Yes
I was writing my blob at http://railsblob.blogspot.com/ which is for new people who are new to Rubby and I was learning if Mongril or Lighthttttp? or Web Rick is better for me. Have you any advice. Thanks? Rails Blobber -- Posted via http://www.ruby-forum.com/.
2007 Nov 05
0
Scruffy > MVC architecture?
Hi, I am a newby in rails...and i have read that scruffy is a great tool to create/display images. Now i find the code below for example... graph = Scruffy::Graph.new graph.title = "Comparative Agent Performance" graph.value_formatter = Scruffy::Formatters::Percentage.new(:precision => 0) graph.add :stacked do |stacked| stacked.add :bar, ''Jack'', [30, 60, 49, 29,
2010 May 28
3
Beginner Facing Problem with rake db:migrate
I am beginner for this Rails from the past 2 days I am working hard to fix the following error C:\Murali Rubby\demo\library>rake db:migrate --trace (in C:/Murali Rubby/demo/library) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate == CreateBooks: migrating ==================================================== --
2012 Aug 14
1
Help needed in reading matlab files
Dear users, I am stucked with a programming problem: I am trying to download a squared adjacency matrix from matlab with only 0 or 1. Doing it without a loop at first, I get an error message that is, I think, related to the "mat_adj<-readMat(pathnames_adj)" line. Did anybodz encouter already that problem? If so, do I need to change anything in my code in order it not to be
2008 Apr 14
2
Problems with nil object
Hi to all. I''ve a very big problem. I know this can seem very loing, but please, try to read it. I have a simply blog, with posts and their comments. I''ve two tables in my db, posts, with post id, text and comments_count to store the number of comments-children of each post (as recomanded to do in AWDWR); and the table comments, with comment id, post_id for the post
2003 Mar 12
7
R help
Dear friends, I work with Matlab and now a bit in trouble with getting used to R. Could you give me some help with the following questions: 1. how to generate the random matrix mxn with constant mean and variance, say N(0,1)? 2. how to create a code (function), say “myfunction”, and make it available for use every time I run R? 3. how to make a package, say “e1071”, available for use
2011 Jun 11
7
"Stack level too" deep with @controller.hi
Hi again, sorry for many questions. In mi HomeController, I have the "hi" method, in this method I use an "if" for show a different message for a registered user or a guest. When I call in "home/index" my method "hi", show me this error message: "Stack level too deep" class HomeController < ApplicationController def hi if (current_user)
2009 Mar 11
4
error.bars
Hi, I'm trying to use the function "error.bars", but the program don't find it, and I dont't found any package with this function. Is there some another functin to draw barplots with error bars? Sueli Rodrigues Eng. Agr?noma - UNESP Mestranda - USP/ESALQ PPG-Solos e Nutri??o de Plantas Fones (19)93442981 (19)33719762
2008 Feb 14
1
Package for Multiple Additive Regression Trees
Hello List, I've been unsuccessful in tracking down a package that does MART. J Friedman's website has a page that mentions an R implementation but the links lead nowhere. There is also a nice walkthru/vignette pdf on his site. But I can not find this package anywhere. Perhaps it's commercial? Does anyone know of where it might be available or of any other R package (or Matlab
2012 Apr 19
2
method value passing in rails
in my ruby on rails application, i have one controller class HomeController < ApplicationController def home puts "name.....#{@name}" end def branch *//HERE HAVE TO GET THE ABOVE FUNCTION VALUE @name* end end What am trying to do, i have to get the @name value in method branch. i could show the value in function home, but i didn''t get that in
2011 Feb 18
2
calculating means
I apologize if you have already seen my question. I am new to the mailing list and I did not get any responses the first time I posted my question. However, I am not sure my post went through. Here is my situation: I have a spreadsheet with columns of fish species (text) and length (numbers). In the fish species column I have 5 different fish. I want R to calculate the mean length and
2017 Aug 15
2
transfer type to 'local' context
Hi all, is there an easy way to get a 'copy' of a type living in another context into the local context? Background: when calling a function residing in a different module (context2) from a module (context1), we first need to introduce a function declaration of the function with empty body. However, in order to do so, we need the function type. pFuncInContext2->getType gives us the
2011 Feb 14
1
Curiosity in my production.log: */*
In my production.log, I usually see lines like this: Processing by HomeController#index as HTML But sometimes I see the line like this: Processing by HomeController#index as */* At first I thought perhaps those calls were made by a bot, but after looking at it closer it looks as those they are generated by normal users. I have no idea, first, how that line could have been generated, and
2006 Jun 08
3
MVC and Pagination
Just wondering how to best integrate with pagination and still stick to MVC... Say I have a Post model that has a published attribute. I want to show all the recent published posts on a page. My first instinct is to create a method in the Post model called recent that does the find with proper conditions and order, but the problem I have is how do I use that with pagination (which definitely
2010 Jun 21
4
Failing Routes in deployment
I have an app that has the following in the routes file: namespace "admin" do # ADMINISTRATIVE ROUTES ONLY root :to => ''home#index'' resources :comments do member do get :approve get :reject end end resources :users do member do get :block get :unblock end end end When browing to
2006 Aug 11
3
General architechture / MVC question
Hi all, A newbie with Ruby on Rails - and programming in general - I''m working on a few Flash and PHP projects as well. Partly to make my work more efficient, partly to gain a better understanding of system architecture / design patterns, I''ve been trying to use the MVC pattern in database-backed Flash / Actionscript development as well. I think / hope that I''m
2006 Aug 01
5
MVC question
Should I create a separate controller for each model or should I use 1 controller for all models? Having 1 "admin" controller for all backend stuff seems logic to me, but when I scaffold it rather makes 1 controller per model. I''m fairly new to the MVC pattern, so what''s the prefered way of doing it? I''m also wondering if the API is up to date? When