And about the admin portal feature, you shows set every resource to a namespace
called admin. Your routes will look like something like:
namespace :admin do
resources :tickets
end
So you should set up a controller inside the namespace admin:
Class Admin::TicketsController < Application Cont
Hey man, why your admin namespace is using http basic authentication? I think
the best thing you can do is use devise with cancan to handle with
authorization in your application.
Sent from my iPhone
On 20/07/2012, at 22:39, Everaldo Gomes wrote:
> Hi,
>
> maybe you could create a Rails Eng
thanks for reply...
i changed
socket:/tmp/mysql.sock to
socket: /tmp/mysql.sock and thar error has gone but i face new error
now..it says
rake aborted!
Please install the mysql2 adapter: `gem install
activerecord-mysql2-adapter` (mysql2 is not part of the bundle. Add it to
Gemfile.)
...learnin
On Jul 21, 2012, at 12:19 AM, Avantec Van wrote:
> Walter Davis wrote in post #1065538:
>
>
>> match '/:slug', :to => 'uploaded_files#show'
>>
>> That should do the trick.
>>
>> Here's a way to make a very terse code for your URL:
>>
>> def set_slug
>>code = Array.new(7) { (('A'..'Z').
Walter Davis wrote in post #1065538:
> match '/:slug', :to => 'uploaded_files#show'
>
> That should do the trick.
>
> Here's a way to make a very terse code for your URL:
>
> def set_slug
> code = Array.new(7) { (('A'..'Z').to_a + (0..9).to_a)[rand(36)]
> }.join.to_s
> if UploadedFile
Hi,
maybe you could create a Rails Engine.
Take a loot at the Railscasts site
http://railscasts.com/episodes/277-mountable-engines
Best Regards,
Everaldo
On Fri, Jul 20, 2012 at 10:04 PM, Zhi-Qiang Lei wrote:
> Hi,
>
> I'm working on a Rails application. Recently my client is asking for an
>
Hi,
I'm working on a Rails application. Recently my client is asking for an admin
portal, which should be able to manage ticket as the one for the original one,
and have some admin specific features additionally. And their authentications
are different, the user portal uses Devise, while the ad
In validations, one can add a custom error message:
> class Person < ActiveRecord::Base
> def a_method_used_for_validation_purposes
> errors.add(:name, "cannot contain the characters !@#%*()_-+=")
> end
> end
>
How wil this message be translated when using I18n?
Can a key be passed inst
deee el wrote in post #1069485:
> Hi friends,
>
> I just finished working on an application, which renders a pie chart on
> the webpage and i want users to have it on their pdf page, pls i there a
> way to render the Pie Chart (High Charts) on PDF page
Have you considered using the Highcharts expo
lalalalala pqpqpqpqpq wrote in post #1069545:
> Hi, I want to link the selections from a drop down menu in my view to a
> controller action. Here's the code for my view:
>
> [code]
> <%= link_to "option A", :controller => "scriptrunner", :action
> => "runoptionA" %>
> <%= link_to "option B", :contr
On 20 July 2012 22:02, Shandy Nantz wrote:
> Colin Law wrote in post #1069548:
>> On 20 July 2012 21:38, Shandy Nantz wrote:
>>
>> So what happens with root :to?
>> Show us the exact line you have in routes.rb, what url you are asking
>> for and what happens.
>>
>> Colin
>
> That works fine, in t
On Fri, Jul 20, 2012 at 1:22 PM, lalalalala pqpqpqpqpq
wrote:
> Right now when I select an option from the drop down menu, nothing is
> called in my controller.
Why would you expect it to be?
> Is there a way to add a "GO" button, so after I
> select something from the menu, I can click the GO
Colin Law wrote in post #1069548:
> On 20 July 2012 21:38, Shandy Nantz wrote:
>
> So what happens with root :to?
> Show us the exact line you have in routes.rb, what url you are asking
> for and what happens.
>
> Colin
That works fine, in that the server starts. I'm still unable to bring up
a s
Hi all,
I have am autocomplete field that (is supposed) to save the selection as
soon as it selected from the drop down. The issue is that the method to
save is called before the selection is made because when I click the
selection is when the onblur happens. Here is my code:
<% @toregion = Re
On 20 July 2012 21:38, Shandy Nantz wrote:
> Colin Law wrote in post #1069541:
>> On 20 July 2012 17:44, Gintautas Šimkus wrote:
>>> Hey Shandy, use
>>>
>>> match '', :to => 'agency#index'
>>
>> Is that better then root :to=>... ?
>>
>> Colin
>
> When I do that I get this error:
>
> syntax error
Colin Law wrote in post #1069541:
> On 20 July 2012 17:44, Gintautas Šimkus wrote:
>> Hey Shandy, use
>>
>> match '', :to => 'agency#index'
>
> Is that better then root :to=>... ?
>
> Colin
When I do that I get this error:
syntax error, unexpected ':', expecting kEND (SyntaxError)
match '' :t
Hi, I want to link the selections from a drop down menu in my view to a
controller action. Here's the code for my view:
[code]
<%= link_to "option A", :controller => "scriptrunner", :action
=> "runoptionA" %>
<%= link_to "option B", :controller => "scriptrunner", :action
=> "runoptionB" %>
<%= lin
On 20 July 2012 17:44, Gintautas Šimkus wrote:
> Hey Shandy, use
>
> match '', :to => 'agency#index'
Is that better then root :to=>... ?
Colin
>
> or replace index with another agency controller action explicitly.
>
> In order to solve the second problem we'd need your routes.rb file (please
>
Hey All
Capital Factory is organizing a Hackathon in conjuction with LSRC 6.
If you want to attend, please cast your votes on the survey link below.
http://www.surveymonkey.com/s/BFYFJBJ
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
On 20 July 2012 15:34, James McLaughlin wrote:
> I am trying to create an application that allows the user to search a
> database. The search page layout would behave with some drop down menus
> that would show data already in the database to narrow the search, and
> also text boxes to allow the u
On Fri, Jul 20, 2012 at 10:43 AM, Sumit Srivastava
wrote:
> I am aware of that. But I am not able to figure out the way I should pass
> the parameters.
First, you should strongly consider the wisdom of having a GET
request deleting any resource, let alone multiple ones :-)
>> > Started GET "/des
I am aware of that. But I am not able to figure out the way I should pass
the parameters. I need help with that.
On Friday, 20 July 2012 19:28:19 UTC+5:30, Hassan Schroeder wrote:
>
> On Fri, Jul 20, 2012 at 2:11 AM, Sumit Srivastava
> wrote:
>
> > Started GET "/destroy_selected?id=contact_ids
Yep, the point I've been getting at. People shouldn't blindly upgrade their
Rails versions anyway, and when they see errors that a Controller can't be
found based on their Model name or vice versa, it should be pretty obvious
as to what's going on unless they're clueless about the inflector.
On
I would prefer ruby racer gem over nodes! Nodejs is a dependency that you
eventually can't satisfy on your production environment, and or others
can't if this is a project meant to be released open source or even
selling.
Am 20.07.2012 12:36 schrieb "Ekin Han" :
> Thank you very much, I think i sh
Hey Shandy, use
match '', :to => 'agency#index'
or replace index with another agency controller action explicitly.
In order to solve the second problem we'd need your routes.rb file (please
use pastie.org or simple code formatting to make it easy to read.
2012/7/20 Colin Law
> On 20 July 2012
On 20 July 2012 16:24, Shandy Nantz wrote:
> Colin Law wrote in post #1069377:
>> On 19 July 2012 17:19, Shandy Nantz wrote:
>>
>> Is that not just
>> root :to => "agency#index"
>> assuming the action you want is index. Unless I have forgotten how
>> rails 2 routing worked.
>>
>> Colin
>
> That'
On Fri, Jul 20, 2012 at 8:55 AM, amature wrote:
>>> (): could not find expected ':' while scanning a simple key at
>>> line 14 column 3
>> i dont know which line or column :(
Uh, what? Even if you're using a code editor that doesn't show line
numbers, I would hope you can count.
But please, st
The "same" as what?
i mean to say test and production code same as in default
>
> So, what is line 14 ?
>
> rake db:create
>
> rake aborted!
>
> (): could not find expected ':' while scanning a simple key at
>> line 14 column 3
>
>
>> Tasks: TOP => db:create => db:load_config
>
>
>
> i dont
On Thursday, July 19, 2012 1:18:54 PM UTC+1, Ruby-Forum.com User wrote:
>
> Colin Law wrote in post #1069267:
> > On 18 July 2012 21:00, masta Blasta wrote:
> >>
> >> The code i'm dealing with in particular has a lot of error checking. If
> >> this & this then fail. If this but not that then
Colin Law wrote in post #1069377:
> On 19 July 2012 17:19, Shandy Nantz wrote:
>
> Is that not just
> root :to => "agency#index"
> assuming the action you want is index. Unless I have forgotten how
> rails 2 routing worked.
>
> Colin
That's what I thought, but I keep getting "No route matches [G
I am trying to create an application that allows the user to search a
database. The search page layout would behave with some drop down menus
that would show data already in the database to narrow the search, and
also text boxes to allow the user to put in key words like the "project
name". I'm hav
On Fri, Jul 20, 2012 at 2:11 AM, Sumit Srivastava
wrote:
> Started GET "/destroy_selected?id=contact_ids" for 127.0.0.1 at Fri Jul 20
> 14:32:34 +0530 2012
> Processing by ContactsController#destroySelected as JS
> Parameters: {"id"=>"contact_ids"}
> SQL (0.1ms) DELETE FROM "contacts" WHERE
this will give you the selected text if you want it. you can probably
figure out what you need from this example.
var grain = $('select#id_of_my_element option:selected').text();
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post
Hi friends,
I just finished working on an application, which renders a pie chart on
the webpage and i want users to have it on their pdf page, pls i there a
way to render the Pie Chart (High Charts) on PDF page
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
On Fri, Jul 20, 2012 at 12:11 AM, amature wrote:
> so when i used rake db:create
> (): could not find expected ':' while scanning a simple key at line
> 14 column 3
So, what is line 14 ?
> ... and should i keep test and production same in config/database.yml ??
The "same" as what?
--
Hassan
Hi all,
How can i send mails in rails 2.3.8 and schedule them when i need it.
i've tried with whenever gem but it did not work properly . can any one
help me out .
thanks in advance
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group
Hi all,
--
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@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this di
Hi all,
--
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@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this di
I have been trying to upgrade the project using the method on several blogs
but failed to do so as the first command to install the plugin itself
fails. Following is the error I get,
sumit@sumit:~/Downloads/railscasts-198-edit-multiple-individually-02eb1c8/store$
ruby script/plugin install git
Manoj,
try this in the model:
validates_presence_of :name, :message => "can't be blank"
Regards,
Seeni Rafiyullah Khan A,
Skype id: rafiyullah.railsfactory | +91 9786832092 | rafigl...@gmail.com
*In Every moment, thank God.*
On Fri, Jul 20, 2012 at 4:17 PM, manoj c. wrote:
> Hi,
>Please
Hi,
Please Help me,in a model i gave like validates_presence_of :name,now
i
need to display error message like "name is required" while clicking
form submission button when leaving text box for name as empty,how
to do this ??
--
Posted via http://www.ruby-forum.com/.
--
You received this mes
Thank you very much, I think i should install nodejs to fix this issue
2012/7/20 Mrrobinhood5
> Try installing nodejs :)
>
> If on ubuntu type :
> sudo apt-get install nodejs
>
> Hope this helps
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails:
This is what I am receiving in the log,
Started GET "/destroy_selected?id=contact_ids" for 127.0.0.1 at Fri Jul 20
14:32:34 +0530 2012
Processing by ContactsController#destroySelected as JS
Parameters: {"id"=>"contact_ids"}
SQL (0.1ms) DELETE FROM "contacts" WHERE "contacts"."id" IS NULL
R
i have been learning rails from
http://guides.rubyonrails.org/getting_started.html and in part creating the
data base i have changed config/databae.yml to
development:
adapter: mysql2
encoding: utf8
database: blog_development
pool: 5
username: myname
password: mypass
host: localhos
I get the same error when I try it, but without the characters. I get:
incomplete "\n" on UTF-16LE
You said it was a utf-8 encoding problem. Can you tell me the solution? THANKS.
On Thursday, July 19, 2012 6:00:32 AM UTC-7, Gary wrote:
>
> 锟斤拷锟街лэ拷擐讧堙锟斤拷 锟斤拷锟斤拷锟街э拷 wrote:
>
> >> isn't blank in
Hi, I hope this is the correct way to announce a new gem: validation_hints
https://github.com/acesuares/validation_hints
https://rubygems.org/gems/validation_hints
It's purpose is to get a list of 'hints' derived from validation on a model
or attribute. These hints then could be used in the use
Hello,
My name is Charles Weitzer. I was a programmer for about 10 years, mainly
designing and developing relational database systems, doing SAS programming
for statistical applications, and wrote some computer aided software
engineering tools in C as well. I am transitioning into recruiting
47 matches
Mail list logo