Displaying 18 results from an estimated 18 matches for "bigghttp".
2008 Jan 21
7
undefined method error
Hello everyone,
I am following the Practical Rails: Social Networking
sites book. In chapter 7 photo gallery I am getting a
NoMethodError in Pages#show
Showing layouts/_menu.rhtml where line #12 raised:
undefined method `new_entry_path'' for #<ActionView::Base:0x52fa56c>
Extracted source (around line #12):
9: <% if is_logged_in? %>
10:
2007 Dec 10
10
Reading Hash/Array
Hi all,
My app is generating a form with several bill_items that should be
updated (fields to be updated are description and net).
The text_field_tag names are bill_item[update][#{id}][description] and
bill_item[update][#{id}][net] (and I added bill_item[update][#{id}]
[id] just in case)
The param received is:
{"commit"=>"Save",
2007 Dec 11
4
Lost in translation - Rails 2.0 Nested Resources, Custom Actions
The shift to the :has_many and :has_one options when defining nested
resource routes has me perplexed. The block format allows me to define
custom REST actions like publish in the example below:
map.resources :users do |user|
user.resources :articles, :member => { :publish => :put }
end
It also allows for multiple levels of nesting if necessary.
What I''d really like to
2008 Jan 21
4
Caching CSS Issue
I have a problem I was hoping someone could shed some light on. I
noticed that with every request to my server, the css file was being
requested. I went ahead and made a static link to the css file so
there is no query string at all, but still I see the requests coming
in with each request. Do I need to do anything else (in the response
header maybe?) to make sure that browsers will cache the
2008 Jan 23
11
Rails 2.0.2 + RJS
Hi
I had ajax commenting on my app, which worked perfectly on Rails
v1.2.6, but does not work the same in Rails 2.02. Basically the
comment gets added, but the visual effects do not work (ie lines 2 + 3
of create.rjs)
create.js
page.insert_html :bottom, ''comments'', :partial => ''comment''
page.visual_effect :appear, "comment_#{@comment.id}"
2008 Feb 11
6
Should I Test My Fixtures?
I have a number of fixtures in my test suite. For example, with
acts_as_authenticated and acts_as_state_machine, I created a number of
users in different account states for use in functional testing.
(Suspended users can not log in, etc)
Is it a good idea to run fixtures through tests to ensure that they
conform to their ideals?
EG: assert users(:suspended_user).suspended?
If so, where should
2007 Dec 17
2
undefined method `param_posted?'
I upgraded an app to 2.01 and can''t figure out why I am getting a
undefined method `param_posted?'' for #<ControlPanelController:
0xb748ba18>
The controller should be inheriting this.
class ControlPanelController < ApplicationController
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2008 Jan 15
2
rails rjs page object
Can anyone point me to api documentation for the page object that is
used in rails rjs files?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send
2008 May 09
6
Operator Names.
What is this ''=>'' operator called?
Does it have a name?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
2007 Dec 16
2
restful_authentication: update of users' attributes on every page load upon 'Remember me' being enabled?
Hello there,
I just noticed a kinda weird thing: if users log in with the ''Remember
Me'' option enabled, their records in the db get updated everytime the
user reloads a page, because apparently restful_authentication''s code
updates the remember_token_expires_at & remember_token attributes for
each page load (not only once on the actual login (from cookie).
2008 Jan 08
3
What happened to _form.rhtml partial in rails 2.0??
Just wondering if anyone could point me to a good explanation of why
the latest way of doing things does not include using something like
_form.html.erb partials in RESTful rails 2.0?? Why did we move away
from partials, etc??
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2008 Mar 28
10
Inheriting from AdminController intstead from ApplicationController
Hi
I would like to do the following:
I have created an admin namespace and the required folders app/admin
views/admin etc. And then I wanted all controllers under app/admin to
inherit from a controller named AdminController which resists under
app/admin/admin.rb instead of inhereting from ApplicationController,
so I could better separate between admin and public section. The
AdminController
2007 Dec 23
11
return day from date (javascript) ?
Ok, I know this isn''t a Rails problem, but if you could help me out
that''d be brill.
I''ve used JavaScript to create a new Date object containing a date of my
choice...
mydate = new Date("11/24/2007");
//going with Javascript''s mm/dd/yyyy format
now this is good, what i want to do now is put in an integer variable
the number for the day, in this case
2007 Dec 09
4
Help on drying code
Hi all,
Currently I''m having to do this:
def self.authorized_roles(controller, action)
specific = self.find_by_controller_and_action(controller, action)
all_actions = self.find_by_controller_and_action(controller, ''*'')
all_controllers = self.find_by_controller(''*'')
role_ids = []
specific.each do |role_item|
role_ids <<
2008 Apr 22
8
How to GET/POST in Rails ?
Is there a definitive guide on how to create a controller that
understands and responds to GET/POST methods ? This does not
necessarily mean I''m trying RESTful Web services.
Google returned lot of material but most of them is pre-Rails 2.0 or
not well explained. Did I miss any obvious document ?
-Arun
--~--~---------~--~----~------------~-------~--~----~
You received this message
2008 Jan 15
6
Rails plugins that use other plugins - why is does this seem impossible?
OK, probably the most frustrated I''ve ever been with Rails. If I don''t
figure this out, I''m going to, um... try again tomorrow.
I''m simply trying to create a plugin. I did the ./script/generate
plugin MY_NEW_PLUGIN and wha-hoo great! Well, not really...
This plugin uses other plugins. For example, acts_as_list,
acts_as_money etc.. How the heck to I get these
2007 Dec 13
10
Version naming to use in a RoR proyect
Hi everyone,
I would need to know if RoR follow any policy for version naming; I
mean, something like linux´s kernel does or similar.
For instance, kernel uses numbers separated in groups by dots (i.e.
pre 2.6 - AA.BB.CC). These groups mean differents fixtures, bugs
fixed...
I will start a big proyect from scratch with rails and I want to
choose now a standart to use and avoid future problems
2007 Dec 10
15
Scaffolding for pre-existing database table in 2.0.1
Hi,
first of all I will apologize in advance for my presumably noobish
question, but I''m only starting to learn Rails and am a little
confused with all the changes in 2.0.1. There are as good as no
tutorials out yet and the 2 or 3 screencasts I''ve seen deal with the
creation of both the app and the database.
Now my problem is that I already have a database with a fair amount of